Spaces:
Runtime error
Runtime error
Commit
·
7029b0e
1
Parent(s):
ac4f141
test
Browse files
app.py
CHANGED
@@ -144,7 +144,7 @@ with demo:
|
|
144 |
model2_S3_output = gr.Textbox(label=".")
|
145 |
model3_S3_output = gr.Textbox(label=".")
|
146 |
with gr.Row():
|
147 |
-
|
148 |
send_button_POS = gr.Button("Send", scale=0)
|
149 |
|
150 |
with gr.TabItem("Chunking", id="Chunk Tab"):
|
@@ -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 |
-
|
169 |
send_button_Chunk = gr.Button("Send", scale=0)
|
170 |
|
171 |
-
send_button_POS.click(process_text, inputs=["POS Tab",
|
172 |
-
send_button_Chunk.click(process_text, inputs=["Chunk Tab",
|
173 |
|
174 |
demo.launch()
|
175 |
|
|
|
144 |
model2_S3_output = gr.Textbox(label=".")
|
145 |
model3_S3_output = gr.Textbox(label=".")
|
146 |
with gr.Row():
|
147 |
+
prompt_POS = gr.Textbox(show_label=False, placeholder="Enter prompt")
|
148 |
send_button_POS = gr.Button("Send", scale=0)
|
149 |
|
150 |
with gr.TabItem("Chunking", id="Chunk Tab"):
|
|
|
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], 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 |
|