Spaces:
Runtime error
Runtime error
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,6 +1,3 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
---
|
| 5 |
title: Fastapi
|
| 6 |
emoji: 💻
|
|
@@ -11,5 +8,53 @@ sdk_version: 4.25.0
|
|
| 11 |
app_file: app.py
|
| 12 |
pinned: false
|
| 13 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
|
| 15 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
title: Fastapi
|
| 3 |
emoji: 💻
|
|
|
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
---
|
| 11 |
+
---
|
| 12 |
+
# FastAPI 💻
|
| 13 |
+
|
| 14 |
+
## Conversational Chatbot
|
| 15 |
+
|
| 16 |
+
This conversational chatbot is designed to engage users in conversations without revealing that they are interacting with an AI model.
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
### Usage:
|
| 20 |
+
|
| 21 |
+
1. Clone the repository:
|
| 22 |
+
```bash
|
| 23 |
+
git clone git clone https://huggingface.co/spaces/deadshot2003/fastapi_gradio
|
| 24 |
+
---
|
| 25 |
+
2. Navigate to the project directory:
|
| 26 |
+
```bash
|
| 27 |
+
cd <project_directory>
|
| 28 |
+
---
|
| 29 |
+
3.Install the required dependencies:
|
| 30 |
+
```bash
|
| 31 |
+
pip install -r requirements.txt
|
| 32 |
+
---
|
| 33 |
+
Run the FastAPI server:
|
| 34 |
+
```bash
|
| 35 |
+
uvicorn app:app --reload
|
| 36 |
+
---
|
| 37 |
+
Access the chatbot interface:
|
| 38 |
+
Open your web browser and go to http://localhost:8000
|
| 39 |
+
|
| 40 |
+
OR
|
| 41 |
+
|
| 42 |
+
Check out the project from hugging face embedding:
|
| 43 |
+
https://deadshot2003-fastapi-gradio.hf.space
|
| 44 |
+
|
| 45 |
+
If you append /gradio to the link, you'll get the Gradio interface.
|
| 46 |
+
If you append /hello/{any_name}, you'll receive a personalized greeting.
|
| 47 |
+
|
| 48 |
+
How to Interact:
|
| 49 |
+
Once the server is running, you can start interacting with the chatbot by typing messages in the input field.
|
| 50 |
+
The chatbot will respond to your messages as if it were engaging in a real conversation.
|
| 51 |
+
Enjoy chatting with the conversational chatbot!
|
| 52 |
+
|
| 53 |
+
Additional Information:
|
| 54 |
+
For more details about the implementation, please refer to the app.py file in the repository.
|
| 55 |
+
If you encounter any issues or have feedback, feel free to open an issue or pull request in the repository.
|
| 56 |
+
|
| 57 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
| 58 |
+
|
| 59 |
|
| 60 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|