Skip to content

ferrywu/react-chatbot-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

title emoji colorFrom colorTo sdk pinned app_build_command app_file license short_description hf_oauth hf_oauth_scopes
React Chatbot Test
🐠
indigo
red
static
false
npm run build
build/index.html
mit
Test static sdk react template
true
inference-api

A Chatbot built with React

This project was bootstrapped with Create React App.

Features

  • Support OAuth login to Hugging Face.
  • Support tuning system prompt and parameters: temperature, top_p, max_tokens.
  • Support typing animation, loading animation, and error handling.
  • Support UI to send user input and get response of the chatbot.
  • Keep user input and response in chat history.

Usage

Create OAuth App

Create an OAuth app at Connected Applications to support OAuth login.
Refer to the description of Sign in with Hugging Face

Development mode

  • npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.

The page will reload when you make changes.
You may also see any lint errors in the console.

Production mode

  • npm run build
  • npx serve -s build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

Releases

No releases published

Packages

No packages published