Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -16,4 +16,13 @@ def predict(sentence,history) :
|
|
16 |
conversation = chatbot(conversation)
|
17 |
return conversation.generated_responses[-1]
|
18 |
|
19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
conversation = chatbot(conversation)
|
17 |
return conversation.generated_responses[-1]
|
18 |
|
19 |
+
header = """
|
20 |
+
<center>
|
21 |
+
<h1> chat with rick and morty </h1>
|
22 |
+
<img src="https://huggingface.co/spaces/not-lain/DialoGPT-Medium-Rick_v2/resolve/main/rick.png">
|
23 |
+
</center>
|
24 |
+
"""
|
25 |
+
with gr.Blocks() as iface :
|
26 |
+
gr.Markdown(header)
|
27 |
+
gr.ChatInterface(predict)
|
28 |
+
iface.queue().launch()
|