Spaces:
Runtime error
Runtime error
Commit
Β·
4fee723
1
Parent(s):
7c616cb
updated description and Title
Browse files
app.py
CHANGED
|
@@ -182,13 +182,18 @@ def interface():
|
|
| 182 |
# prompt = template_single.format(tab_name, textbox_prompt)
|
| 183 |
|
| 184 |
with gr.Tab("Linguistic Entities"):
|
| 185 |
-
gr.Markdown("
|
| 186 |
-
|
| 187 |
-
|
| 188 |
-
|
| 189 |
-
|
| 190 |
-
|
| 191 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 192 |
|
| 193 |
# Inputs
|
| 194 |
ling_ents_prompt = gr.Textbox(show_label=False, placeholder="Write a prompt and press enter")
|
|
@@ -225,14 +230,18 @@ def interface():
|
|
| 225 |
# outputs=[linguistic_entities, ling_ents_prompt, gpt_ling_ents_chatbot])
|
| 226 |
|
| 227 |
with gr.Tab("POS/Chunking"):
|
| 228 |
-
gr.Markdown("
|
| 229 |
-
|
| 230 |
-
|
| 231 |
-
|
| 232 |
-
|
| 233 |
-
|
| 234 |
-
|
| 235 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 236 |
|
| 237 |
# Inputs
|
| 238 |
task_prompt = gr.Textbox(show_label=False, placeholder="Write a prompt and press enter")
|
|
@@ -295,7 +304,10 @@ def interface():
|
|
| 295 |
# outputs=[task, task_prompt, gpt_S3_chatbot])
|
| 296 |
|
| 297 |
with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
| 298 |
-
gr.Markdown("
|
|
|
|
|
|
|
|
|
|
| 299 |
|
| 300 |
# load interface
|
| 301 |
interface()
|
|
|
|
| 182 |
# prompt = template_single.format(tab_name, textbox_prompt)
|
| 183 |
|
| 184 |
with gr.Tab("Linguistic Entities"):
|
| 185 |
+
gr.Markdown("""
|
| 186 |
+
##π Step-By-Step Instructions
|
| 187 |
+
|
| 188 |
+
- Enter a sentence for three models to process (Vicuna-7b, LLaMA-7b and GPT-3.5).
|
| 189 |
+
- Enter your OpenAI Api Key and click on 'Submit Key'.
|
| 190 |
+
- Select a Linguistic Entity from the Dropdown.
|
| 191 |
+
- Click 'Submit' to send your inputs to the models.
|
| 192 |
+
- Scroll to the bottom and click 'Clear' to start again.
|
| 193 |
+
|
| 194 |
+
###π€ Now the models will output the linguistic entities found in your prompt based on your selections!
|
| 195 |
+
|
| 196 |
+
""")
|
| 197 |
|
| 198 |
# Inputs
|
| 199 |
ling_ents_prompt = gr.Textbox(show_label=False, placeholder="Write a prompt and press enter")
|
|
|
|
| 230 |
# outputs=[linguistic_entities, ling_ents_prompt, gpt_ling_ents_chatbot])
|
| 231 |
|
| 232 |
with gr.Tab("POS/Chunking"):
|
| 233 |
+
gr.Markdown("""
|
| 234 |
+
##π Step-By-Step Instructions
|
| 235 |
+
|
| 236 |
+
- Enter a sentence for three models to process (Vicuna-7b, LLaMA-7b and GPT-3.5).
|
| 237 |
+
- Enter your OpenAI Api Key and click on 'Submit Key'.
|
| 238 |
+
- Select a Task from the Dropdown.
|
| 239 |
+
- Select a Linguistic Entity from the Dropdown.
|
| 240 |
+
- Click 'Submit' to send your inputs to the models.
|
| 241 |
+
- Scroll to the bottom and click 'Clear' to start again.
|
| 242 |
+
|
| 243 |
+
### π€ Now the models will output the POS Tagging or Chunking in your prompt with three Strategies based on your selections!
|
| 244 |
+
""")
|
| 245 |
|
| 246 |
# Inputs
|
| 247 |
task_prompt = gr.Textbox(show_label=False, placeholder="Write a prompt and press enter")
|
|
|
|
| 304 |
# outputs=[task, task_prompt, gpt_S3_chatbot])
|
| 305 |
|
| 306 |
with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
| 307 |
+
gr.Markdown("""
|
| 308 |
+
# Assessing the Articulate
|
| 309 |
+
## A Comparative Analysis of the Core Linguistic Knowledge in Large Language Models
|
| 310 |
+
""")
|
| 311 |
|
| 312 |
# load interface
|
| 313 |
interface()
|