Spaces:
Sleeping
Sleeping
send_button.click(
Browse files
app.py
CHANGED
@@ -65,17 +65,18 @@ with gr.Blocks() as demo:
|
|
65 |
with gr.Column():
|
66 |
file_upload = gr.File(label="Upload your file")
|
67 |
chatbot = gr.Chatbot()
|
68 |
-
msg = gr.Textbox(label="
|
69 |
-
send_button = gr.Button("
|
70 |
-
send_button.click(
|
71 |
-
respond,
|
72 |
-
inputs=[msg, file_upload, chatbot],
|
73 |
-
outputs=[msg, chatbot]
|
74 |
-
)
|
75 |
|
76 |
with gr.Column():
|
77 |
df_string_output = gr.Textbox(label="raw data", interactive=False)
|
78 |
|
|
|
|
|
|
|
|
|
|
|
|
|
79 |
file_upload.change(process_file, inputs=file_upload, outputs=df_string_output)
|
80 |
|
81 |
demo.launch()
|
|
|
65 |
with gr.Column():
|
66 |
file_upload = gr.File(label="Upload your file")
|
67 |
chatbot = gr.Chatbot()
|
68 |
+
msg = gr.Textbox(label="Message")
|
69 |
+
send_button = gr.Button("Send")
|
|
|
|
|
|
|
|
|
|
|
70 |
|
71 |
with gr.Column():
|
72 |
df_string_output = gr.Textbox(label="raw data", interactive=False)
|
73 |
|
74 |
+
send_button.click(
|
75 |
+
respond,
|
76 |
+
inputs=[msg, df_string_output, chatbot],
|
77 |
+
outputs=[msg, chatbot]
|
78 |
+
)
|
79 |
+
|
80 |
file_upload.change(process_file, inputs=file_upload, outputs=df_string_output)
|
81 |
|
82 |
demo.launch()
|