Spaces:
Runtime error
Runtime error
Commit
Β·
25203d2
1
Parent(s):
3cb1869
changed website theme and added description
Browse files
app.py
CHANGED
|
@@ -206,7 +206,9 @@ def interface():
|
|
| 206 |
# prompt = template_single.format(tab_name, textbox_prompt)
|
| 207 |
|
| 208 |
with gr.Tab("Linguistic Entities"):
|
| 209 |
-
gr.Markdown("
|
|
|
|
|
|
|
| 210 |
|
| 211 |
# Inputs
|
| 212 |
ling_ents_prompt = gr.Textbox(show_label=False, placeholder="Write a prompt and press enter")
|
|
@@ -243,7 +245,9 @@ def interface():
|
|
| 243 |
# outputs=[linguistic_entities, ling_ents_prompt, gpt_ling_ents_chatbot])
|
| 244 |
|
| 245 |
with gr.Tab("POS/Chunking"):
|
| 246 |
-
gr.Markdown("
|
|
|
|
|
|
|
| 247 |
|
| 248 |
# Inputs
|
| 249 |
task_prompt = gr.Textbox(show_label=False, placeholder="Write a prompt and press enter")
|
|
@@ -305,7 +309,7 @@ def interface():
|
|
| 305 |
# task_btn.click(gpt_strategies_respond, inputs=[strategy1, task, task_linguistic_entities, gpt_S3_chatbot],
|
| 306 |
# outputs=[task, task_prompt, gpt_S3_chatbot])
|
| 307 |
|
| 308 |
-
with gr.Blocks() as demo:
|
| 309 |
gr.Markdown("# LLM Evaluator With Linguistic Scrutiny")
|
| 310 |
|
| 311 |
# load interface
|
|
|
|
| 206 |
# prompt = template_single.format(tab_name, textbox_prompt)
|
| 207 |
|
| 208 |
with gr.Tab("Linguistic Entities"):
|
| 209 |
+
gr.Markdown("<h2>π Rules<h2>")
|
| 210 |
+
gr.Markdown("<h4>- Enter a sentence for three models to process (Vicuna-7b, LLaMA-7b and GPT-3.5). \n- Enter your OpenAI Api Key and click on 'Submit Key'. \n- Select a Linguistic Entity from the Dropdown. \n- Click 'Submit' to send your inputs to the models. \n- Scroll to the bottom and click 'Clear' to start again.<h4>")
|
| 211 |
+
gr.Markdown("<h4>π€ Now the models will output the linguistic entities found in your prompt based on your selections!")
|
| 212 |
|
| 213 |
# Inputs
|
| 214 |
ling_ents_prompt = gr.Textbox(show_label=False, placeholder="Write a prompt and press enter")
|
|
|
|
| 245 |
# outputs=[linguistic_entities, ling_ents_prompt, gpt_ling_ents_chatbot])
|
| 246 |
|
| 247 |
with gr.Tab("POS/Chunking"):
|
| 248 |
+
gr.Markdown("<h2>π Rules<h2>")
|
| 249 |
+
gr.Markdown("<h4>- Enter a sentence for three models to process (Vicuna-7b, LLaMA-7b and GPT-3.5). \n- Enter your OpenAI Api Key and click on 'Submit Key'. \n- Select a Task from the Dropdown \n- Select a Linguistic Entity from the Dropdown. \n- Click 'Submit' to send your inputs to the models. \n- Scroll to the bottom and click 'Clear' to start again.<h4>")
|
| 250 |
+
gr.Markdown("<h4>π€ Now the models will output the POS Tagging or Chunking in your prompt with three Strategies based on your selections!")
|
| 251 |
|
| 252 |
# Inputs
|
| 253 |
task_prompt = gr.Textbox(show_label=False, placeholder="Write a prompt and press enter")
|
|
|
|
| 309 |
# task_btn.click(gpt_strategies_respond, inputs=[strategy1, task, task_linguistic_entities, gpt_S3_chatbot],
|
| 310 |
# outputs=[task, task_prompt, gpt_S3_chatbot])
|
| 311 |
|
| 312 |
+
with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
| 313 |
gr.Markdown("# LLM Evaluator With Linguistic Scrutiny")
|
| 314 |
|
| 315 |
# load interface
|