Spaces:
Runtime error
Runtime error
Commit
·
a5ff1a8
1
Parent(s):
2d7bc30
testing allow custom value
Browse files
app.py
CHANGED
@@ -242,7 +242,7 @@ def interface():
|
|
242 |
# Will activate after getting API key
|
243 |
have_key2 = gr.Dropdown(["Yes", "No"], label="Do you own an API Key?", scale=0.5)
|
244 |
ling_ents_apikey_input = gr.Textbox(label="Open AI Key", placeholder="Enter your Openai key here", type="password")
|
245 |
-
linguistic_entities = gr.Dropdown(["Noun", "Determiner", "Noun phrase", "Verb phrase", "Dependent clause", "T-units", "Other"], label="Linguistic Entity")
|
246 |
with gr.Accordion("If other, enter your own Linguistic Entity here:"):
|
247 |
linguistic_entities_other = gr.Textbox(show_label=False, placeholder="Enter your own Linguistic Entity")
|
248 |
ling_ents_btn = gr.Button(value="Submit")
|
|
|
242 |
# Will activate after getting API key
|
243 |
have_key2 = gr.Dropdown(["Yes", "No"], label="Do you own an API Key?", scale=0.5)
|
244 |
ling_ents_apikey_input = gr.Textbox(label="Open AI Key", placeholder="Enter your Openai key here", type="password")
|
245 |
+
linguistic_entities = gr.Dropdown(["Noun", "Determiner", "Noun phrase", "Verb phrase", "Dependent clause", "T-units", "Other"], label="Linguistic Entity", allow_custom_value=True)
|
246 |
with gr.Accordion("If other, enter your own Linguistic Entity here:"):
|
247 |
linguistic_entities_other = gr.Textbox(show_label=False, placeholder="Enter your own Linguistic Entity")
|
248 |
ling_ents_btn = gr.Button(value="Submit")
|