Spaces:
Running
Running
Upload app.py
Browse files
app.py
CHANGED
@@ -85,17 +85,6 @@ example1 = [
|
|
85 |
["What from Beijing to New York?"]
|
86 |
]
|
87 |
|
88 |
-
# # Create the Gradio interface
|
89 |
-
# interface = gr.ChatInterface(
|
90 |
-
# fn=generate_response,
|
91 |
-
# chatbot=gr.Chatbot(show_label=False, show_share_button=False, show_copy_button=True, likeable=True, layout="panel"),
|
92 |
-
# additional_inputs=additional_inputs,
|
93 |
-
# examples=example1,
|
94 |
-
# cache_examples=False,
|
95 |
-
# )
|
96 |
-
|
97 |
-
# # Launch the app
|
98 |
-
# interface.launch()
|
99 |
|
100 |
def clear_chat():
|
101 |
# print("Clear chat history")
|
@@ -105,7 +94,7 @@ def clear_chat():
|
|
105 |
with gr.Blocks(fill_width=True, fill_height=True) as demo:
|
106 |
ci= gr.ChatInterface(
|
107 |
fn=generate_response,
|
108 |
-
chatbot=gr.Chatbot(show_label=False, show_share_button=False, show_copy_button=True,
|
109 |
additional_inputs=additional_inputs,
|
110 |
examples=example1,
|
111 |
cache_examples=False,
|
|
|
85 |
["What from Beijing to New York?"]
|
86 |
]
|
87 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
88 |
|
89 |
def clear_chat():
|
90 |
# print("Clear chat history")
|
|
|
94 |
with gr.Blocks(fill_width=True, fill_height=True) as demo:
|
95 |
ci= gr.ChatInterface(
|
96 |
fn=generate_response,
|
97 |
+
chatbot=gr.Chatbot(show_label=False, show_share_button=False, show_copy_button=True, layout="panel"),
|
98 |
additional_inputs=additional_inputs,
|
99 |
examples=example1,
|
100 |
cache_examples=False,
|