Spaces:
Runtime error
Runtime error
Commit
·
5dabdf1
1
Parent(s):
9ac6bac
changed place for definitions
Browse files
app.py
CHANGED
@@ -253,7 +253,10 @@ def interface():
|
|
253 |
# Outputs
|
254 |
|
255 |
user_prompt_1 = gr.Textbox(label="Original prompt")
|
|
|
|
|
256 |
linguistic_features_textbox = gr.Textbox(label="Linguistic Complexity", disabled=True)
|
|
|
257 |
|
258 |
with gr.Row():
|
259 |
gpt_ling_ents_chatbot = gr.Chatbot(label="gpt-3.5")
|
@@ -271,7 +274,6 @@ def interface():
|
|
271 |
ling_ents_btn.click(fn=update_textbox, inputs=ling_ents_prompt, outputs=user_prompt_1, api_name="ling_ents_btn")
|
272 |
|
273 |
# Show features from LFTK
|
274 |
-
gr.Markdown("Definitions for the complexity indices can be found [here](https://docs.google.com/spreadsheets/d/1uXtQ1ah0OL9cmHp2Hey0QcHb4bifJcQFLvYlVIAWWwQ/edit#gid=693915416).")
|
275 |
ling_ents_btn.click(linguistic_features_fn, inputs=[ling_ents_prompt], outputs=[linguistic_features_textbox])
|
276 |
|
277 |
# Event Handler for GPT 3.5 Chatbot
|
@@ -340,8 +342,8 @@ def interface():
|
|
340 |
user_prompt_2 = gr.Textbox(label="Original prompt", )
|
341 |
|
342 |
# Linguistic Complexity
|
343 |
-
gr.Markdown("Definitions for the complexity indices can be found [here](https://docs.google.com/spreadsheets/d/1uXtQ1ah0OL9cmHp2Hey0QcHb4bifJcQFLvYlVIAWWwQ/edit#gid=693915416).")
|
344 |
linguistic_features_textbox_2 = gr.Textbox(label="Linguistic Complexity", disabled=True)
|
|
|
345 |
|
346 |
gr.Markdown("### Strategy 1 - QA-Based Prompting")
|
347 |
strategy1 = gr.Markdown("S1", visible=False)
|
|
|
253 |
# Outputs
|
254 |
|
255 |
user_prompt_1 = gr.Textbox(label="Original prompt")
|
256 |
+
|
257 |
+
# Linguistic Complexities
|
258 |
linguistic_features_textbox = gr.Textbox(label="Linguistic Complexity", disabled=True)
|
259 |
+
gr.Markdown(" Definitions for the complexity indices can be found [here](https://docs.google.com/spreadsheets/d/1uXtQ1ah0OL9cmHp2Hey0QcHb4bifJcQFLvYlVIAWWwQ/edit#gid=693915416).")
|
260 |
|
261 |
with gr.Row():
|
262 |
gpt_ling_ents_chatbot = gr.Chatbot(label="gpt-3.5")
|
|
|
274 |
ling_ents_btn.click(fn=update_textbox, inputs=ling_ents_prompt, outputs=user_prompt_1, api_name="ling_ents_btn")
|
275 |
|
276 |
# Show features from LFTK
|
|
|
277 |
ling_ents_btn.click(linguistic_features_fn, inputs=[ling_ents_prompt], outputs=[linguistic_features_textbox])
|
278 |
|
279 |
# Event Handler for GPT 3.5 Chatbot
|
|
|
342 |
user_prompt_2 = gr.Textbox(label="Original prompt", )
|
343 |
|
344 |
# Linguistic Complexity
|
|
|
345 |
linguistic_features_textbox_2 = gr.Textbox(label="Linguistic Complexity", disabled=True)
|
346 |
+
gr.Markdown(" Definitions for the complexity indices can be found [here](https://docs.google.com/spreadsheets/d/1uXtQ1ah0OL9cmHp2Hey0QcHb4bifJcQFLvYlVIAWWwQ/edit#gid=693915416).")
|
347 |
|
348 |
gr.Markdown("### Strategy 1 - QA-Based Prompting")
|
349 |
strategy1 = gr.Markdown("S1", visible=False)
|