Spaces:
Runtime error
Runtime error
Commit
•
4f08081
1
Parent(s):
606b144
Update app.py (#110)
Browse files- Update app.py (adc5ff5063e984d6a2695aededfca5cdcafe7a61)
Co-authored-by: Merve Noyan <[email protected]>
app.py
CHANGED
@@ -22,12 +22,13 @@ def predict(input, history=[]):
|
|
22 |
#print('response-->>'+str(response))
|
23 |
return response, history
|
24 |
|
25 |
-
description = "This is a chatbot application based on the DialoGPT model of Microsoft."
|
26 |
-
title = "Chat with DialoGPT"
|
27 |
examples = [["What is the meaning of life?"]]
|
28 |
gr.Interface(fn=predict,
|
29 |
title=title,
|
30 |
description=description,
|
|
|
31 |
inputs=["text", "state"],
|
32 |
outputs=["chatbot", "state"]).launch()
|
33 |
|
|
|
22 |
#print('response-->>'+str(response))
|
23 |
return response, history
|
24 |
|
25 |
+
description = "This is a chatbot application based on the DialoGPT model of Microsoft. Simply type an input to get started with chatting."
|
26 |
+
title = "Chat with DialoGPT 👾"
|
27 |
examples = [["What is the meaning of life?"]]
|
28 |
gr.Interface(fn=predict,
|
29 |
title=title,
|
30 |
description=description,
|
31 |
+
examples=examples,
|
32 |
inputs=["text", "state"],
|
33 |
outputs=["chatbot", "state"]).launch()
|
34 |
|