Spaces:
Sleeping
Sleeping
df_string_output
Browse files
app.py
CHANGED
@@ -63,7 +63,7 @@ def respond(user_message, chat_history):
|
|
63 |
with gr.Blocks() as demo:
|
64 |
with gr.Row():
|
65 |
file_upload = gr.File(label="Upload your file")
|
66 |
-
df_string_output = gr.
|
67 |
|
68 |
with gr.Row():
|
69 |
chatbot = gr.Chatbot()
|
@@ -81,7 +81,7 @@ with gr.Blocks() as demo:
|
|
81 |
# 处理聊天机器人的对话
|
82 |
send_button.click(
|
83 |
respond,
|
84 |
-
inputs=[msg, chatbot],
|
85 |
outputs=[msg, chatbot]
|
86 |
)
|
87 |
|
|
|
63 |
with gr.Blocks() as demo:
|
64 |
with gr.Row():
|
65 |
file_upload = gr.File(label="Upload your file")
|
66 |
+
df_string_output = gr.Variable()
|
67 |
|
68 |
with gr.Row():
|
69 |
chatbot = gr.Chatbot()
|
|
|
81 |
# 处理聊天机器人的对话
|
82 |
send_button.click(
|
83 |
respond,
|
84 |
+
inputs=[msg, df_string_output, chatbot],
|
85 |
outputs=[msg, chatbot]
|
86 |
)
|
87 |
|