Spaces:
Runtime error
Runtime error
Commit
·
c597e04
1
Parent(s):
2a20876
test
Browse files
app.py
CHANGED
@@ -26,8 +26,9 @@ with gr.Blocks() as demo:
|
|
26 |
|
27 |
# Dropdown for linguistic entities
|
28 |
entity_dropdown = gr.Dropdown(linguistic_entities, label="Select Linguistic Entity")
|
29 |
-
|
30 |
prompt_POS = gr.Textbox(show_label=False, placeholder="Write a prompt and press enter")
|
|
|
|
|
31 |
|
32 |
gr.Markdown("Strategy 1 QA-Based Prompting")
|
33 |
with gr.Row():
|
@@ -92,9 +93,9 @@ with gr.Blocks() as demo:
|
|
92 |
time.sleep(2)
|
93 |
return bot_message
|
94 |
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
|
99 |
# prompt_CHUNK.submit(respond_entities, [prompt_CHUNK, vicuna_S1_chatbot_CHUNK], [prompt_CHUNK, vicuna_S1_chatbot_CHUNK])
|
100 |
# prompt_CHUNK.submit(respond_entities, [prompt_CHUNK, vicuna_S2_chatbot_CHUNK], [prompt_CHUNK, vicuna_S2_chatbot_CHUNK])
|
|
|
26 |
|
27 |
# Dropdown for linguistic entities
|
28 |
entity_dropdown = gr.Dropdown(linguistic_entities, label="Select Linguistic Entity")
|
|
|
29 |
prompt_POS = gr.Textbox(show_label=False, placeholder="Write a prompt and press enter")
|
30 |
+
submit_btn = gr.Button(label="Submit")
|
31 |
+
|
32 |
|
33 |
gr.Markdown("Strategy 1 QA-Based Prompting")
|
34 |
with gr.Row():
|
|
|
93 |
time.sleep(2)
|
94 |
return bot_message
|
95 |
|
96 |
+
submit_btn.click(respond_entities, [prompt_POS, vicuna_S1_chatbot_POS], [prompt_POS, vicuna_S1_chatbot_POS])
|
97 |
+
submit_btn.click(respond_entities, [prompt_POS, vicuna_S2_chatbot_POS], [prompt_POS, vicuna_S2_chatbot_POS])
|
98 |
+
submit_btn.click(respond_entities, [prompt_POS, vicuna_S3_chatbot_POS], [prompt_POS, vicuna_S3_chatbot_POS])
|
99 |
|
100 |
# prompt_CHUNK.submit(respond_entities, [prompt_CHUNK, vicuna_S1_chatbot_CHUNK], [prompt_CHUNK, vicuna_S1_chatbot_CHUNK])
|
101 |
# prompt_CHUNK.submit(respond_entities, [prompt_CHUNK, vicuna_S2_chatbot_CHUNK], [prompt_CHUNK, vicuna_S2_chatbot_CHUNK])
|