Spaces:
Sleeping
Sleeping
research14
commited on
Commit
β’
72a77ec
1
Parent(s):
db3bad1
updated description
Browse files
app.py
CHANGED
@@ -203,7 +203,7 @@ def interface():
|
|
203 |
- If you selected 'No', leave the 'OpenAI Key' field blank and continue with the rest.
|
204 |
- Select a Linguistic Entity from the Dropdown.
|
205 |
- Click 'Submit' to send your inputs to the models.
|
206 |
-
- To
|
207 |
|
208 |
### β³ After you click 'Submit', the models will take a couple seconds to process your inputs.
|
209 |
### π€ Then, the models will output the linguistic entity found in your prompt based on your selection!
|
@@ -231,8 +231,8 @@ def interface():
|
|
231 |
gpt_ling_ents_chatbot = gr.Chatbot(label="gpt-3.5")
|
232 |
llama_ling_ents_chatbot = gr.Chatbot(label="llama-7b")
|
233 |
vicuna_ling_ents_chatbot = gr.Chatbot(label="vicuna-7b")
|
234 |
-
clear = gr.ClearButton(components=[ling_ents_prompt, ling_ents_apikey_input, have_key2, linguistic_entities,
|
235 |
-
|
236 |
|
237 |
# Event Handler for API Key
|
238 |
ling_ents_btn.click(update_api_key, inputs=ling_ents_apikey_input)
|
@@ -266,7 +266,7 @@ def interface():
|
|
266 |
- Select a Task from the Dropdown.
|
267 |
- Select a Linguistic Entity from the Dropdown.
|
268 |
- Click 'Submit' to send your inputs to the models.
|
269 |
-
- To
|
270 |
|
271 |
### β³ After you click 'Submit', the models will take a couple seconds to process your inputs.
|
272 |
### π€ Then, the models will output the POS Tagging or Chunking in your prompt with three different strategies based on your selections!
|
@@ -316,10 +316,10 @@ def interface():
|
|
316 |
gpt_S3_chatbot = gr.Chatbot(label="gpt-3.5")
|
317 |
llama_S3_chatbot = gr.Chatbot(label="llama-7b")
|
318 |
vicuna_S3_chatbot = gr.Chatbot(label="vicuna-7b")
|
319 |
-
clear_all = gr.ClearButton(components=[task_prompt, task_apikey_input, have_key, task, task_linguistic_entities,
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
|
324 |
# Event Handler for API Key
|
325 |
task_btn.click(update_api_key, inputs=task_apikey_input)
|
|
|
203 |
- If you selected 'No', leave the 'OpenAI Key' field blank and continue with the rest.
|
204 |
- Select a Linguistic Entity from the Dropdown.
|
205 |
- Click 'Submit' to send your inputs to the models.
|
206 |
+
- To submit a new prompt, repeat all the steps above and click 'Submit' again. Your new prompt should appear on the top of previous ones.
|
207 |
|
208 |
### β³ After you click 'Submit', the models will take a couple seconds to process your inputs.
|
209 |
### π€ Then, the models will output the linguistic entity found in your prompt based on your selection!
|
|
|
231 |
gpt_ling_ents_chatbot = gr.Chatbot(label="gpt-3.5")
|
232 |
llama_ling_ents_chatbot = gr.Chatbot(label="llama-7b")
|
233 |
vicuna_ling_ents_chatbot = gr.Chatbot(label="vicuna-7b")
|
234 |
+
# clear = gr.ClearButton(components=[ling_ents_prompt, ling_ents_apikey_input, have_key2, linguistic_entities,
|
235 |
+
# vicuna_ling_ents_chatbot, llama_ling_ents_chatbot, gpt_ling_ents_chatbot,])
|
236 |
|
237 |
# Event Handler for API Key
|
238 |
ling_ents_btn.click(update_api_key, inputs=ling_ents_apikey_input)
|
|
|
266 |
- Select a Task from the Dropdown.
|
267 |
- Select a Linguistic Entity from the Dropdown.
|
268 |
- Click 'Submit' to send your inputs to the models.
|
269 |
+
- To submit a new prompt, repeat all the steps above and click 'Submit' again. Your new prompt should appear on the top of previous ones.
|
270 |
|
271 |
### β³ After you click 'Submit', the models will take a couple seconds to process your inputs.
|
272 |
### π€ Then, the models will output the POS Tagging or Chunking in your prompt with three different strategies based on your selections!
|
|
|
316 |
gpt_S3_chatbot = gr.Chatbot(label="gpt-3.5")
|
317 |
llama_S3_chatbot = gr.Chatbot(label="llama-7b")
|
318 |
vicuna_S3_chatbot = gr.Chatbot(label="vicuna-7b")
|
319 |
+
# clear_all = gr.ClearButton(components=[task_prompt, task_apikey_input, have_key, task, task_linguistic_entities,
|
320 |
+
# vicuna_S1_chatbot, llama_S1_chatbot, gpt_S1_chatbot,
|
321 |
+
# vicuna_S2_chatbot, llama_S2_chatbot, gpt_S2_chatbot,
|
322 |
+
# vicuna_S3_chatbot, llama_S3_chatbot, gpt_S3_chatbot])
|
323 |
|
324 |
# Event Handler for API Key
|
325 |
task_btn.click(update_api_key, inputs=task_apikey_input)
|