Spaces:
Sleeping
Sleeping
removed a slash
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ from huggingface_hub import InferenceCLient
|
|
4 |
client = InterfaceClient("HuggingFaceH4/zephyr-7b-beta")
|
5 |
|
6 |
def respond(message, history):
|
7 |
-
messages = [{"role": "system", "content": "You are friend chatbot"}]
|
8 |
|
9 |
if history:
|
10 |
messages.extend(history)
|
@@ -19,5 +19,4 @@ def respond(message, history):
|
|
19 |
return response['choices'][0]['message']['content'].strip()
|
20 |
|
21 |
chatbot = gr.ChatInterface(respond, type = 'messages')
|
22 |
-
|
23 |
chatbot.launch()
|
|
|
4 |
client = InterfaceClient("HuggingFaceH4/zephyr-7b-beta")
|
5 |
|
6 |
def respond(message, history):
|
7 |
+
messages = [{"role": "system", "content": "You are friend chatbot"}]
|
8 |
|
9 |
if history:
|
10 |
messages.extend(history)
|
|
|
19 |
return response['choices'][0]['message']['content'].strip()
|
20 |
|
21 |
chatbot = gr.ChatInterface(respond, type = 'messages')
|
|
|
22 |
chatbot.launch()
|