youngtsai commited on
Commit
aa49250
1 Parent(s): 2320eeb

df_string_output

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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.Textbox(label="DataFrame as String", visible=False)
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