Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,5 +1,4 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
-
import random
|
| 3 |
import os
|
| 4 |
|
| 5 |
from huggingface_hub import InferenceClient
|
|
@@ -23,6 +22,6 @@ def respond(message, history):
|
|
| 23 |
return response['choices'][0]['message']['content'].strip()
|
| 24 |
|
| 25 |
|
| 26 |
-
chatbot = gr.ChatInterface(respond,
|
| 27 |
|
| 28 |
chatbot.launch()
|
|
|
|
| 1 |
import gradio as gr
|
|
|
|
| 2 |
import os
|
| 3 |
|
| 4 |
from huggingface_hub import InferenceClient
|
|
|
|
| 22 |
return response['choices'][0]['message']['content'].strip()
|
| 23 |
|
| 24 |
|
| 25 |
+
chatbot = gr.ChatInterface(respond, type="messages")
|
| 26 |
|
| 27 |
chatbot.launch()
|