Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -46,8 +46,9 @@ def respond(message, history, max_length, min_length, max_new_tokens, num_beams,
|
|
46 |
For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
|
47 |
"""
|
48 |
demo = gr.ChatInterface(
|
49 |
-
respond,
|
50 |
-
examples=["
|
|
|
51 |
additional_inputs=[
|
52 |
#gr.Textbox(value="You are a friendly Chatbot.", label="System message"),
|
53 |
gr.Slider(minimum=1, maximum=256, value=100, step=1, label="Max Length"),
|
|
|
46 |
For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
|
47 |
"""
|
48 |
demo = gr.ChatInterface(
|
49 |
+
fn=respond,
|
50 |
+
examples=[{"text": "hello"}, {"text": "hola"}, {"text": "merhaba"}],
|
51 |
+
title="Echo Bot",
|
52 |
additional_inputs=[
|
53 |
#gr.Textbox(value="You are a friendly Chatbot.", label="System message"),
|
54 |
gr.Slider(minimum=1, maximum=256, value=100, step=1, label="Max Length"),
|