Aishwarya Solanki commited on
Commit
d37d386
·
1 Parent(s): f061a57

Refining UI

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -147,11 +147,11 @@ with gr.Blocks() as ui:
147
  gemini_key = gr.Textbox(label="Please input your Gemini key", type="password")
148
  is_valid = False
149
  status_message = gr.HTML(label="Validation Status")
150
- gpt_key.input(fn=api_check_msg, inputs=[gpt_key, gr.Textbox(value="GPT")], outputs=status_message)
151
  status_message = gr.HTML(label="Validation Status")
152
- llama_key.input(fn=api_check_msg, inputs=[llama_key, gr.Textbox(value="Llama")], outputs=status_message)
153
  status_message = gr.HTML(label="Validation Status")
154
- gemini_key.input(fn=api_check_msg, inputs=[gemini_key, gr.Textbox(value="Gemini")], outputs=status_message)
155
  gr.Button(value="Don't have an LLM key? Get one through the below links.")
156
  gr.Button(value="OpenAi Key", link="https://platform.openai.com/account/api-keys")
157
  gr.Button(value="Meta Llama Key", link="https://platform.openai.com/account/api-keys")
 
147
  gemini_key = gr.Textbox(label="Please input your Gemini key", type="password")
148
  is_valid = False
149
  status_message = gr.HTML(label="Validation Status")
150
+ gpt_key.input(fn=api_check_msg, inputs=[gpt_key, gr.Textbox(value="GPT", visible=False)], outputs=status_message)
151
  status_message = gr.HTML(label="Validation Status")
152
+ llama_key.input(fn=api_check_msg, inputs=[llama_key, gr.Textbox(value="Llama", visible=False)], outputs=status_message)
153
  status_message = gr.HTML(label="Validation Status")
154
+ gemini_key.input(fn=api_check_msg, inputs=[gemini_key, gr.Textbox(value="Gemini", visible=False)], outputs=status_message)
155
  gr.Button(value="Don't have an LLM key? Get one through the below links.")
156
  gr.Button(value="OpenAi Key", link="https://platform.openai.com/account/api-keys")
157
  gr.Button(value="Meta Llama Key", link="https://platform.openai.com/account/api-keys")