Spaces:
Runtime error
Runtime error
Update Chatbot with add gr.ChatInterface
Browse files
app.py
CHANGED
@@ -56,6 +56,8 @@ demo = gr.ChatInterface(
|
|
56 |
label="Top-p (nucleus sampling)",
|
57 |
),
|
58 |
],
|
|
|
|
|
59 |
respond,
|
60 |
additional_inputs=[
|
61 |
gr.Textbox(value="You are a friendly Chatbot.", label="System message"),
|
@@ -71,5 +73,6 @@ demo = gr.ChatInterface(
|
|
71 |
],
|
72 |
)
|
73 |
|
|
|
74 |
if __name__ == "__main__":
|
75 |
demo.launch()
|
|
|
56 |
label="Top-p (nucleus sampling)",
|
57 |
),
|
58 |
],
|
59 |
+
),
|
60 |
+
gr.ChatInterface(
|
61 |
respond,
|
62 |
additional_inputs=[
|
63 |
gr.Textbox(value="You are a friendly Chatbot.", label="System message"),
|
|
|
73 |
],
|
74 |
)
|
75 |
|
76 |
+
|
77 |
if __name__ == "__main__":
|
78 |
demo.launch()
|