research14 commited on
Commit
1ca4779
·
1 Parent(s): e3103da

removed api key btn on POS/Chunk tab

Browse files
Files changed (1) hide show
  1. app.py +3 -7
app.py CHANGED
@@ -196,10 +196,8 @@ def interface():
196
 
197
  # Inputs
198
  ling_ents_prompt = gr.Textbox(show_label=False, placeholder="Write a prompt and press enter")
199
- with gr.Row():
200
- # Will activate after getting API key
201
- ling_ents_apikey_input = gr.Textbox(label="Open AI Key", placeholder="Enter your Openai key here", type="password")
202
- ling_ents_apikey_btn = gr.Button(value="Submit Key", scale=0)
203
  linguistic_entities = gr.Dropdown(["Noun", "Determiner", "Noun phrase", "Verb phrase", "Dependent clause", "T-units"], label="Linguistic Entity")
204
  ling_ents_btn = gr.Button(value="Submit")
205
 
@@ -244,9 +242,7 @@ def interface():
244
 
245
  # Inputs
246
  task_prompt = gr.Textbox(show_label=False, placeholder="Write a prompt and press enter")
247
- with gr.Row():
248
- task_apikey_input = gr.Textbox(label="Open AI Key", placeholder="Enter your Openai key here", type="password")
249
- task_apikey_btn = gr.Button(value="Submit Key", scale=0)
250
  task = gr.Dropdown(["POS Tagging", "Chunking"], label="Task")
251
  task_linguistic_entities = gr.Dropdown(["Noun", "Determiner", "Noun phrase", "Verb phrase", "Dependent clause", "T-units"], label="Linguistic Entity For Strategy 1")
252
  task_btn = gr.Button(value="Submit")
 
196
 
197
  # Inputs
198
  ling_ents_prompt = gr.Textbox(show_label=False, placeholder="Write a prompt and press enter")
199
+ ling_ents_apikey_input = gr.Textbox(label="Open AI Key", placeholder="Enter your Openai key here", type="password")
200
+ # ling_ents_apikey_btn = gr.Button(value="Submit Key", scale=0)
 
 
201
  linguistic_entities = gr.Dropdown(["Noun", "Determiner", "Noun phrase", "Verb phrase", "Dependent clause", "T-units"], label="Linguistic Entity")
202
  ling_ents_btn = gr.Button(value="Submit")
203
 
 
242
 
243
  # Inputs
244
  task_prompt = gr.Textbox(show_label=False, placeholder="Write a prompt and press enter")
245
+ task_apikey_input = gr.Textbox(label="Open AI Key", placeholder="Enter your Openai key here", type="password")
 
 
246
  task = gr.Dropdown(["POS Tagging", "Chunking"], label="Task")
247
  task_linguistic_entities = gr.Dropdown(["Noun", "Determiner", "Noun phrase", "Verb phrase", "Dependent clause", "T-units"], label="Linguistic Entity For Strategy 1")
248
  task_btn = gr.Button(value="Submit")