research14 commited on
Commit
3348cb9
β€’
1 Parent(s): f122880

edited description strategies

Browse files
Files changed (1) hide show
  1. app.py +31 -30
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.Markdown("""
245
- ## πŸ“œ Step-By-Step Instructions
246
-
247
- - Enter a sentence for three models to process (Vicuna-7b, LLaMA-7b and GPT-3.5).
248
- - If you own an OpenAI API key, select 'Yes' in the dropdown. If you don't own one, select 'No'.
249
- - If you selected 'Yes', enter your OpenAI API Key [Link to your OpenAI keys](https://platform.openai.com/api-keys).
250
- - If you selected 'No', leave the 'OpenAI Key' field blank and continue with the rest.
251
- - Select a Task from the Dropdown.
252
- - Select a Linguistic Entity from the Dropdown.
253
- - Click 'Submit' to send your inputs to the models.
254
- - To enter a new prompt, scroll to the bottom and click 'Clear' to start again.
255
-
256
- ### ⏳ After you click 'Submit', the models will take a couple seconds to process your inputs.
257
- ### πŸ€– Then, the models will output the POS Tagging or Chunking in your prompt with three different strategies based on your selections!
258
-
259
- Note: If you get an 'Error' in the gpt-3.5 model, check the following:
260
- - Check that you entered your key correctly without any extra characters.
261
- - If you used a free key, it means you exceeded your quota from the free API Key.
262
- """)
263
-
264
- gr.Markdown("""
265
- ### πŸ›  How each Strategy works
266
-
267
- - Strategy 1 - QA-Based Prompting
268
- - S1 Explanation
269
- - Strategy 2 - Instruction-Based Prompting
270
- - S2 Explanation
271
- - Strategy 3 - Structured Prompting
272
- - S3 Explanation
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")