Spaces:
Runtime error
Runtime error
Update demo
Browse files
app.py
CHANGED
@@ -42,7 +42,7 @@ def respond(
|
|
42 |
"""
|
43 |
For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
|
44 |
"""
|
45 |
-
gr.ChatInterface(
|
46 |
respond,
|
47 |
textbox=gr.Textbox(placeholder="Enter message here", container=False, scale = 7),
|
48 |
chatbot=gr.Chatbot(height=400),
|
@@ -51,4 +51,8 @@ gr.ChatInterface(
|
|
51 |
gr.Slider(500,4000, label="Max New Tokens"),
|
52 |
gr.Slider(0,1, label="Temperature")
|
53 |
]
|
54 |
-
)
|
|
|
|
|
|
|
|
|
|
42 |
"""
|
43 |
For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
|
44 |
"""
|
45 |
+
demo = gr.ChatInterface(
|
46 |
respond,
|
47 |
textbox=gr.Textbox(placeholder="Enter message here", container=False, scale = 7),
|
48 |
chatbot=gr.Chatbot(height=400),
|
|
|
51 |
gr.Slider(500,4000, label="Max New Tokens"),
|
52 |
gr.Slider(0,1, label="Temperature")
|
53 |
]
|
54 |
+
)
|
55 |
+
|
56 |
+
|
57 |
+
if __name__ == "__main__":
|
58 |
+
demo.launch()
|