Aishwarya Solanki commited on
Commit
3fee699
·
1 Parent(s): ab85d06
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -79,7 +79,6 @@ def diagnose(key, model, top_k, temperature, symptom_prompt):
79
 
80
 
81
  with gr.Blocks() as ui:
82
- message = "Hello, Welcome to the GUI by Team #9."
83
 
84
  with gr.Row(equal_height=500):
85
  with gr.Column(scale=1, min_width=300):
@@ -91,10 +90,10 @@ with gr.Blocks() as ui:
91
  gr.Button(value="OpenAi Key", link="https://platform.openai.com/account/api-keys")
92
  gr.Button(value="Meta Llama Key", link="https://platform.openai.com/account/api-keys")
93
  gr.Button(value="Gemini Key", link="https://platform.openai.com/account/api-keys")
94
- gr.ClearButton(gpt_key, llama_key, gemini_key, message, variant="primary")
95
 
96
  with gr.Column(scale=2, min_width=600):
97
- message = gr.Textbox(label="", value=message, interactive=False, visible=True)
98
  temperature = gr.Slider(0.0, 1.0, value=0.7, step = 0.01, label="Temperature", info="Set the Temperature")
99
  top_k = gr.Slider(1, 10, value=3, step = 1, label="top-k value", info="Set the 'k' for top-k LLM responses")
100
  symptoms = gr.Textbox(label="Add the symptom data in the input to receive diagnosis")
 
79
 
80
 
81
  with gr.Blocks() as ui:
 
82
 
83
  with gr.Row(equal_height=500):
84
  with gr.Column(scale=1, min_width=300):
 
90
  gr.Button(value="OpenAi Key", link="https://platform.openai.com/account/api-keys")
91
  gr.Button(value="Meta Llama Key", link="https://platform.openai.com/account/api-keys")
92
  gr.Button(value="Gemini Key", link="https://platform.openai.com/account/api-keys")
93
+ gr.ClearButton(gpt_key, llama_key, gemini_key, variant="primary")
94
 
95
  with gr.Column(scale=2, min_width=600):
96
+ gr.Markdown("### Hello, Welcome to the GUI by Team #9.")
97
  temperature = gr.Slider(0.0, 1.0, value=0.7, step = 0.01, label="Temperature", info="Set the Temperature")
98
  top_k = gr.Slider(1, 10, value=3, step = 1, label="top-k value", info="Set the 'k' for top-k LLM responses")
99
  symptoms = gr.Textbox(label="Add the symptom data in the input to receive diagnosis")