Spaces:
Runtime error
Runtime error
chore: name fix
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ messages = [
|
|
13 |
]
|
14 |
|
15 |
|
16 |
-
def
|
17 |
msg = messages.copy()
|
18 |
for m in history:
|
19 |
q, a = m
|
@@ -28,6 +28,6 @@ def random_response(message, history):
|
|
28 |
return output[response_start + len('<|assistant|>'):]
|
29 |
|
30 |
|
31 |
-
demo = gr.ChatInterface(
|
32 |
|
33 |
demo.launch()
|
|
|
13 |
]
|
14 |
|
15 |
|
16 |
+
def chat_response(message, history):
|
17 |
msg = messages.copy()
|
18 |
for m in history:
|
19 |
q, a = m
|
|
|
28 |
return output[response_start + len('<|assistant|>'):]
|
29 |
|
30 |
|
31 |
+
demo = gr.ChatInterface(chat_response)
|
32 |
|
33 |
demo.launch()
|