YKajima commited on
Commit
2acf559
1 Parent(s): c317c89

construct the location of the components

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -50,7 +50,8 @@ with gr.Blocks() as iface:
50
  input_text = gr.Textbox(label="テキスト")
51
  input_url = gr.Textbox(label="URL")
52
  chat_btn = gr.Button("Chat")
53
- output_text = gr.Textbox(label="回答")
 
54
 
55
  # Event handler
56
  chat_btn.click(fn=chat, inputs=[input_text, input_url], outputs=output_text)
 
50
  input_text = gr.Textbox(label="テキスト")
51
  input_url = gr.Textbox(label="URL")
52
  chat_btn = gr.Button("Chat")
53
+ with gr.Column():
54
+ output_text = gr.Textbox(label="回答")
55
 
56
  # Event handler
57
  chat_btn.click(fn=chat, inputs=[input_text, input_url], outputs=output_text)