research14 commited on
Commit
037e269
1 Parent(s): a074ee9
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -165,11 +165,11 @@ with demo:
165
  model2_S3_output = gr.Textbox(label=".")
166
  model3_S3_output = gr.Textbox(label=".")
167
  with gr.Row():
168
- prompt_Chunk = gr.Textbox(show_label=False, placeholder="Enter prompt")
169
  send_button_Chunk = gr.Button("Send", scale=0)
170
 
171
- send_button_POS.click(process_text, inputs=["POS Tab", prompt_Chunk.element], outputs=[model1_S1_output, model1_S1_output, model1_S1_output])
172
- send_button_Chunk.click(process_text, inputs=["Chunk Tab", prompt_POS.element], outputs=[model1_S1_output, model1_S1_output, model1_S1_output])
173
 
174
  demo.launch()
175
 
 
165
  model2_S3_output = gr.Textbox(label=".")
166
  model3_S3_output = gr.Textbox(label=".")
167
  with gr.Row():
168
+ prompt_Chunk = gr.Textbox(id="prompt_Chunk", show_label=False, placeholder="Enter prompt")
169
  send_button_Chunk = gr.Button("Send", scale=0)
170
 
171
+ send_button_POS.click(process_text, inputs=["POS Tab", prompt_Chunk], outputs=[model1_S1_output, model1_S1_output, model1_S1_output])
172
+ send_button_Chunk.click(process_text, inputs=["Chunk Tab", prompt_POS], outputs=[model1_S1_output, model1_S1_output, model1_S1_output])
173
 
174
  demo.launch()
175