Spaces:
Build error
Build error
dennis-fast
commited on
Commit
·
91f14e5
1
Parent(s):
78cc221
resolving output error
Browse files
app.py
CHANGED
@@ -21,10 +21,13 @@ def predict(input, history=[]):
|
|
21 |
response = tokenizer.decode(history[0]).split("<|endoftext|>")
|
22 |
response = [(response[i], response[i+1]) for i in range(0, len(response)-1, 2)] # convert to tuples of list
|
23 |
return response, history
|
|
|
|
|
24 |
|
25 |
gr.Interface(fn=predict,
|
26 |
title="DialoGPT-medium",
|
27 |
inputs=["text", "state"],
|
28 |
-
outputs=["
|
29 |
allow_screenshot=False,
|
30 |
-
allow_flagging='never').launch()
|
|
|
|
21 |
response = tokenizer.decode(history[0]).split("<|endoftext|>")
|
22 |
response = [(response[i], response[i+1]) for i in range(0, len(response)-1, 2)] # convert to tuples of list
|
23 |
return response, history
|
24 |
+
|
25 |
+
|
26 |
|
27 |
gr.Interface(fn=predict,
|
28 |
title="DialoGPT-medium",
|
29 |
inputs=["text", "state"],
|
30 |
+
outputs=["chatbot", "state"],
|
31 |
allow_screenshot=False,
|
32 |
+
allow_flagging='never').launch()
|
33 |
+
|