Spaces:
Runtime error
Runtime error
Commit
·
21a6ab6
1
Parent(s):
b8c87a6
update format btn.click
Browse files
app.py
CHANGED
@@ -199,6 +199,7 @@ def interface():
|
|
199 |
|
200 |
# Outputs
|
201 |
gr.Markdown("Strategy 1 QA-Based Prompting")
|
|
|
202 |
with gr.Row():
|
203 |
vicuna_S1_chatbot = gr.Chatbot(label="vicuna-7b")
|
204 |
llama_S1_chatbot = gr.Chatbot(label="llama-7b")
|
@@ -220,11 +221,11 @@ def interface():
|
|
220 |
|
221 |
# vicuna_strategies_respond(strategy, task_name, task_ling_ent, message, chat_history):
|
222 |
# Event Handlers for Vicuna Chatbot POS/Chunk
|
223 |
-
task_btn.click(vicuna_strategies_respond, inputs=[
|
224 |
outputs=[task, task_prompt, vicuna_S1_chatbot])
|
225 |
-
task_btn.click(vicuna_strategies_respond, inputs=[
|
226 |
outputs=[task, task_prompt, vicuna_S2_chatbot])
|
227 |
-
task_btn.click(vicuna_strategies_respond, inputs=[
|
228 |
outputs=[task, task_prompt, vicuna_S3_chatbot])
|
229 |
|
230 |
# Event Handler for LLaMA Chatbot POS/Chunk
|
|
|
199 |
|
200 |
# Outputs
|
201 |
gr.Markdown("Strategy 1 QA-Based Prompting")
|
202 |
+
strategy1 = gr.Markdown("S1", visible=False)
|
203 |
with gr.Row():
|
204 |
vicuna_S1_chatbot = gr.Chatbot(label="vicuna-7b")
|
205 |
llama_S1_chatbot = gr.Chatbot(label="llama-7b")
|
|
|
221 |
|
222 |
# vicuna_strategies_respond(strategy, task_name, task_ling_ent, message, chat_history):
|
223 |
# Event Handlers for Vicuna Chatbot POS/Chunk
|
224 |
+
task_btn.click(vicuna_strategies_respond, inputs=[strategy1, task, task_linguistic_entities, task_prompt, vicuna_S1_chatbot],
|
225 |
outputs=[task, task_prompt, vicuna_S1_chatbot])
|
226 |
+
task_btn.click(vicuna_strategies_respond, inputs=[strategy1, task, task_linguistic_entities, task_prompt, vicuna_S2_chatbot],
|
227 |
outputs=[task, task_prompt, vicuna_S2_chatbot])
|
228 |
+
task_btn.click(vicuna_strategies_respond, inputs=[strategy1, task, task_linguistic_entities, task_prompt, vicuna_S3_chatbot],
|
229 |
outputs=[task, task_prompt, vicuna_S3_chatbot])
|
230 |
|
231 |
# Event Handler for LLaMA Chatbot POS/Chunk
|