Spaces:
Runtime error
Runtime error
Commit
Β·
3348cb9
1
Parent(s):
f122880
edited description strategies
Browse files
app.py
CHANGED
|
@@ -241,36 +241,37 @@ def interface():
|
|
| 241 |
outputs=[linguistic_entities, ling_ents_prompt, vicuna_ling_ents_chatbot])
|
| 242 |
|
| 243 |
with gr.Tab("CoreNLP"):
|
| 244 |
-
gr.
|
| 245 |
-
|
| 246 |
-
|
| 247 |
-
|
| 248 |
-
|
| 249 |
-
- If you
|
| 250 |
-
|
| 251 |
-
|
| 252 |
-
|
| 253 |
-
|
| 254 |
-
|
| 255 |
-
|
| 256 |
-
|
| 257 |
-
|
| 258 |
-
|
| 259 |
-
|
| 260 |
-
|
| 261 |
-
|
| 262 |
-
|
| 263 |
-
|
| 264 |
-
|
| 265 |
-
|
| 266 |
-
|
| 267 |
-
|
| 268 |
-
-
|
| 269 |
-
|
| 270 |
-
-
|
| 271 |
-
|
| 272 |
-
-
|
| 273 |
-
|
|
|
|
| 274 |
|
| 275 |
# Inputs
|
| 276 |
task_prompt = gr.Textbox(show_label=False, placeholder="Write a prompt and press enter")
|
|
|
|
| 241 |
outputs=[linguistic_entities, ling_ents_prompt, vicuna_ling_ents_chatbot])
|
| 242 |
|
| 243 |
with gr.Tab("CoreNLP"):
|
| 244 |
+
with gr.Row():
|
| 245 |
+
gr.Markdown("""
|
| 246 |
+
## π Step-By-Step Instructions
|
| 247 |
+
|
| 248 |
+
- Enter a sentence for three models to process (Vicuna-7b, LLaMA-7b and GPT-3.5).
|
| 249 |
+
- If you own an OpenAI API key, select 'Yes' in the dropdown. If you don't own one, select 'No'.
|
| 250 |
+
- If you selected 'Yes', enter your OpenAI API Key [Link to your OpenAI keys](https://platform.openai.com/api-keys).
|
| 251 |
+
- If you selected 'No', leave the 'OpenAI Key' field blank and continue with the rest.
|
| 252 |
+
- Select a Task from the Dropdown.
|
| 253 |
+
- Select a Linguistic Entity from the Dropdown.
|
| 254 |
+
- Click 'Submit' to send your inputs to the models.
|
| 255 |
+
- To enter a new prompt, scroll to the bottom and click 'Clear' to start again.
|
| 256 |
+
|
| 257 |
+
### β³ After you click 'Submit', the models will take a couple seconds to process your inputs.
|
| 258 |
+
### π€ Then, the models will output the POS Tagging or Chunking in your prompt with three different strategies based on your selections!
|
| 259 |
+
|
| 260 |
+
Note: If you get an 'Error' in the gpt-3.5 model, check the following:
|
| 261 |
+
- Check that you entered your key correctly without any extra characters.
|
| 262 |
+
- If you used a free key, it means you exceeded your quota from the free API Key.
|
| 263 |
+
""")
|
| 264 |
+
|
| 265 |
+
gr.Markdown("""
|
| 266 |
+
### π οΈ How each Strategy works
|
| 267 |
+
|
| 268 |
+
- Strategy 1 - QA-Based Prompting
|
| 269 |
+
- S1 Explanation
|
| 270 |
+
- Strategy 2 - Instruction-Based Prompting
|
| 271 |
+
- S2 Explanation
|
| 272 |
+
- Strategy 3 - Structured Prompting
|
| 273 |
+
- S3 Explanation
|
| 274 |
+
""")
|
| 275 |
|
| 276 |
# Inputs
|
| 277 |
task_prompt = gr.Textbox(show_label=False, placeholder="Write a prompt and press enter")
|