Spaces:
Sleeping
Sleeping
research14
commited on
Commit
•
44a174a
1
Parent(s):
7ee30e4
added definition for linguistic complexity
Browse files
app.py
CHANGED
@@ -340,7 +340,7 @@ def interface():
|
|
340 |
|
341 |
# Outputs
|
342 |
user_prompt_2 = gr.Textbox(label="Original prompt", )
|
343 |
-
linguistic_features_textbox_2 = gr.Textbox(label="Linguistic Complexity", disabled=True)
|
344 |
|
345 |
gr.Markdown("### Strategy 1 - QA-Based Prompting")
|
346 |
strategy1 = gr.Markdown("S1", visible=False)
|
@@ -375,7 +375,7 @@ def interface():
|
|
375 |
task_btn.click(fn=update_textbox, inputs=task_prompt, outputs=user_prompt_2, api_name="task_btn")
|
376 |
|
377 |
# Show features from LFTK
|
378 |
-
task_btn.click(linguistic_features_fn, inputs=[task_prompt], outputs=[linguistic_features_textbox_2]
|
379 |
|
380 |
# Event Handler for GPT 3.5 Chatbot POS/Chunk, user must submit api key before submitting the prompt
|
381 |
# Will activate after getting API key
|
|
|
340 |
|
341 |
# Outputs
|
342 |
user_prompt_2 = gr.Textbox(label="Original prompt", )
|
343 |
+
linguistic_features_textbox_2 = gr.Textbox(label="Linguistic Complexity", disabled=True, info="[Definitions for Complexity Indices](https://docs.google.com/spreadsheets/d/1uXtQ1ah0OL9cmHp2Hey0QcHb4bifJcQFLvYlVIAWWwQ/edit#gid=693915416)]")
|
344 |
|
345 |
gr.Markdown("### Strategy 1 - QA-Based Prompting")
|
346 |
strategy1 = gr.Markdown("S1", visible=False)
|
|
|
375 |
task_btn.click(fn=update_textbox, inputs=task_prompt, outputs=user_prompt_2, api_name="task_btn")
|
376 |
|
377 |
# Show features from LFTK
|
378 |
+
task_btn.click(linguistic_features_fn, inputs=[task_prompt], outputs=[linguistic_features_textbox_2])
|
379 |
|
380 |
# Event Handler for GPT 3.5 Chatbot POS/Chunk, user must submit api key before submitting the prompt
|
381 |
# Will activate after getting API key
|