Aishwarya Solanki commited on
Commit
56d663c
·
1 Parent(s): 5170879

updating UI

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -190,12 +190,12 @@ with gr.Blocks() as ui:
190
  symptoms.input(toggle_button, inputs=[symptoms, gpt_key, llama_key, gemini_key], outputs=llm_btn)
191
  with gr.Row(equal_height=200):
192
  with gr.Column(scale=1, min_width=150):
 
193
  gpt_message = gr.Textbox(label="GPT Output", interactive=False, placeholder="GPT Output")
194
  llama_message = gr.Textbox(label="LLaMA Output", interactive=False, placeholder="LLaMA Output")
195
- gemini_message = gr.Textbox(label="Gemini Output", interactive=False, placeholder="Gemini Output")
196
- majority_output = gr.Textbox(label="Majority Output", interactive=False, placeholder="Majority Output")
197
  confidence = gr.Textbox(label="Confidence Score (%)", interactive=False, placeholder="Confidence Score")
198
-
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
 
 
190
  symptoms.input(toggle_button, inputs=[symptoms, gpt_key, llama_key, gemini_key], outputs=llm_btn)
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