Spaces:
Sleeping
Sleeping
fixed spelling and 8 ball bug
Browse files
app.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
-
from huggingface_hub
|
| 3 |
|
| 4 |
client = InterfaceClient("HuggingFaceH$/zephyr-7b-beta")
|
| 5 |
|
|
@@ -19,7 +19,7 @@ def respond(message, history):
|
|
| 19 |
|
| 20 |
return response['choices'][0]['message']['content'].strip()
|
| 21 |
|
| 22 |
-
chatbot = gr.ChatInterface(
|
| 23 |
chatbot.launch()
|
| 24 |
|
| 25 |
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
from huggingface_hub import InferenceClient
|
| 3 |
|
| 4 |
client = InterfaceClient("HuggingFaceH$/zephyr-7b-beta")
|
| 5 |
|
|
|
|
| 19 |
|
| 20 |
return response['choices'][0]['message']['content'].strip()
|
| 21 |
|
| 22 |
+
chatbot = gr.ChatInterface(respond, type="messages")
|
| 23 |
chatbot.launch()
|
| 24 |
|
| 25 |
|