Spaces:
Sleeping
Sleeping
Aishwarya Solanki
commited on
Commit
·
3be8e10
1
Parent(s):
56d663c
updating UI
Browse files
app.py
CHANGED
@@ -175,7 +175,7 @@ with gr.Blocks() as ui:
|
|
175 |
llama_key.input(fn=api_check_msg, inputs=[llama_key, gr.Textbox(value="Llama", visible=False)], outputs=status_message)
|
176 |
status_message = gr.HTML(label="Validation Status")
|
177 |
gemini_key.input(fn=api_check_msg, inputs=[gemini_key, gr.Textbox(value="Gemini", visible=False)], outputs=status_message)
|
178 |
-
gr.
|
179 |
gr.Button(value="OpenAi Key", link="https://platform.openai.com/account/api-keys")
|
180 |
gr.Button(value="Meta Llama Key", link="https://platform.openai.com/account/api-keys")
|
181 |
gr.Button(value="Gemini Key", link="https://platform.openai.com/account/api-keys")
|
@@ -191,11 +191,17 @@ with gr.Blocks() as ui:
|
|
191 |
with gr.Row(equal_height=200):
|
192 |
with gr.Column(scale=1, min_width=150):
|
193 |
majority_output = gr.Textbox(label="Majority Output", interactive=False, placeholder="Majority Output")
|
194 |
-
gpt_message = gr.Textbox(label="GPT Output", interactive=False, placeholder="GPT Output")
|
195 |
-
llama_message = gr.Textbox(label="LLaMA Output", interactive=False, placeholder="LLaMA Output")
|
196 |
with gr.Column(scale=1, min_width=150):
|
197 |
confidence = gr.Textbox(label="Confidence Score (%)", interactive=False, placeholder="Confidence Score")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
198 |
gemini_message = gr.Textbox(label="Gemini Output", interactive=False, placeholder="Gemini Output")
|
|
|
199 |
llm_btn.click(fn=diagnose, inputs=[gpt_key, llama_key, gemini_key, top_p, temperature, symptoms],
|
200 |
outputs=[gpt_message, llama_message, gemini_message, majority_output, confidence], api_name="LLM_Comparator")
|
201 |
|
|
|
175 |
llama_key.input(fn=api_check_msg, inputs=[llama_key, gr.Textbox(value="Llama", visible=False)], outputs=status_message)
|
176 |
status_message = gr.HTML(label="Validation Status")
|
177 |
gemini_key.input(fn=api_check_msg, inputs=[gemini_key, gr.Textbox(value="Gemini", visible=False)], outputs=status_message)
|
178 |
+
gr.Markdown("### Don't have an LLM key? Get one through the below links.")
|
179 |
gr.Button(value="OpenAi Key", link="https://platform.openai.com/account/api-keys")
|
180 |
gr.Button(value="Meta Llama Key", link="https://platform.openai.com/account/api-keys")
|
181 |
gr.Button(value="Gemini Key", link="https://platform.openai.com/account/api-keys")
|
|
|
191 |
with gr.Row(equal_height=200):
|
192 |
with gr.Column(scale=1, min_width=150):
|
193 |
majority_output = gr.Textbox(label="Majority Output", interactive=False, placeholder="Majority Output")
|
|
|
|
|
194 |
with gr.Column(scale=1, min_width=150):
|
195 |
confidence = gr.Textbox(label="Confidence Score (%)", interactive=False, placeholder="Confidence Score")
|
196 |
+
|
197 |
+
with gr.Row(equal_height=200):
|
198 |
+
with gr.Column(scale=1, min_width=66):
|
199 |
+
gpt_message = gr.Textbox(label="GPT Output", interactive=False, placeholder="GPT Output")
|
200 |
+
with gr.Column(scale=1, min_width=66):
|
201 |
+
llama_message = gr.Textbox(label="LLaMA Output", interactive=False, placeholder="LLaMA Output")
|
202 |
+
with gr.Column(scale=1, min_width=66):
|
203 |
gemini_message = gr.Textbox(label="Gemini Output", interactive=False, placeholder="Gemini Output")
|
204 |
+
|
205 |
llm_btn.click(fn=diagnose, inputs=[gpt_key, llama_key, gemini_key, top_p, temperature, symptoms],
|
206 |
outputs=[gpt_message, llama_message, gemini_message, majority_output, confidence], api_name="LLM_Comparator")
|
207 |
|