Spaces:
Sleeping
Sleeping
research14
commited on
Commit
•
db3bad1
1
Parent(s):
d378f2a
uncommented out other models
Browse files
app.py
CHANGED
@@ -247,12 +247,12 @@ def interface():
|
|
247 |
outputs=[ling_ents_prompt, gpt_ling_ents_chatbot])
|
248 |
|
249 |
# Event Handler for LLaMA Chatbot
|
250 |
-
|
251 |
-
|
252 |
|
253 |
# Event Handler for Vicuna Chatbot
|
254 |
-
|
255 |
-
|
256 |
|
257 |
with gr.Tab("CoreNLP"):
|
258 |
with gr.Row():
|
@@ -341,21 +341,20 @@ def interface():
|
|
341 |
outputs=[task_prompt, gpt_S3_chatbot])
|
342 |
|
343 |
# Event Handler for LLaMA Chatbot POS/Chunk
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
|
351 |
-
# vicuna_strategies_respond(strategy, task_name, task_ling_ent, message, chat_history):
|
352 |
# Event Handlers for Vicuna Chatbot POS/Chunk
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
|
360 |
with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
361 |
gr.Markdown("""
|
|
|
247 |
outputs=[ling_ents_prompt, gpt_ling_ents_chatbot])
|
248 |
|
249 |
# Event Handler for LLaMA Chatbot
|
250 |
+
ling_ents_btn.click(llama_respond, inputs=[linguistic_entities, ling_ents_prompt, llama_ling_ents_chatbot],
|
251 |
+
outputs=[linguistic_entities, ling_ents_prompt, llama_ling_ents_chatbot])
|
252 |
|
253 |
# Event Handler for Vicuna Chatbot
|
254 |
+
ling_ents_btn.click(vicuna_respond, inputs=[linguistic_entities, ling_ents_prompt, vicuna_ling_ents_chatbot],
|
255 |
+
outputs=[linguistic_entities, ling_ents_prompt, vicuna_ling_ents_chatbot])
|
256 |
|
257 |
with gr.Tab("CoreNLP"):
|
258 |
with gr.Row():
|
|
|
341 |
outputs=[task_prompt, gpt_S3_chatbot])
|
342 |
|
343 |
# Event Handler for LLaMA Chatbot POS/Chunk
|
344 |
+
task_btn.click(llama_strategies_respond, inputs=[strategy1, task, task_linguistic_entities, task_prompt, llama_S1_chatbot],
|
345 |
+
outputs=[task, task_prompt, llama_S1_chatbot])
|
346 |
+
task_btn.click(llama_strategies_respond, inputs=[strategy2, task, task_linguistic_entities, task_prompt, llama_S2_chatbot],
|
347 |
+
outputs=[task, task_prompt, llama_S2_chatbot])
|
348 |
+
task_btn.click(llama_strategies_respond, inputs=[strategy3, task, task_linguistic_entities, task_prompt, llama_S3_chatbot],
|
349 |
+
outputs=[task, task_prompt, llama_S3_chatbot])
|
350 |
|
|
|
351 |
# Event Handlers for Vicuna Chatbot POS/Chunk
|
352 |
+
task_btn.click(vicuna_strategies_respond, inputs=[strategy1, task, task_linguistic_entities, task_prompt, vicuna_S1_chatbot],
|
353 |
+
outputs=[task, task_prompt, vicuna_S1_chatbot])
|
354 |
+
task_btn.click(vicuna_strategies_respond, inputs=[strategy2, task, task_linguistic_entities, task_prompt, vicuna_S2_chatbot],
|
355 |
+
outputs=[task, task_prompt, vicuna_S2_chatbot])
|
356 |
+
task_btn.click(vicuna_strategies_respond, inputs=[strategy3, task, task_linguistic_entities, task_prompt, vicuna_S3_chatbot],
|
357 |
+
outputs=[task, task_prompt, vicuna_S3_chatbot])
|
358 |
|
359 |
with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
360 |
gr.Markdown("""
|