Spaces:
Sleeping
Sleeping
Aishwarya Solanki
commited on
Commit
·
b5bfff3
1
Parent(s):
d29ca1f
removing two output values
Browse files
app.py
CHANGED
@@ -95,12 +95,11 @@ with gr.Blocks() as ui:
|
|
95 |
|
96 |
with gr.Column(scale=2, min_width=600):
|
97 |
message = gr.Textbox(label="", value=message, interactive=False, visible=True)
|
98 |
-
output = gr.Textbox(label="Model output status", value="Model hasn't run yet.")
|
99 |
temperature = gr.Slider(0.0, 1.0, value=0.7, step = 0.01, label="Temperature", info="Set the Temperature")
|
100 |
top_k = gr.Slider(1, 10, value=3, step = 1, label="top-k value", info="Set the 'k' for top-k LLM responses")
|
101 |
symptoms = gr.Textbox(label="Add the symptom data in the input to receive diagnosis")
|
102 |
llm_btn = gr.Button(value="Diagnose Disease", variant="primary", elem_id="diagnose")
|
103 |
llm_btn.click(fn=diagnose, inputs=[gpt_key, llama_key, gemini_key, top_k, temperature, symptoms], outputs=output, api_name="auditor")
|
104 |
-
output = gr.Textbox(label="LLM ranking output status", value=output.value)
|
105 |
|
106 |
ui.launch(share=True)
|
|
|
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")
|
101 |
llm_btn = gr.Button(value="Diagnose Disease", variant="primary", elem_id="diagnose")
|
102 |
llm_btn.click(fn=diagnose, inputs=[gpt_key, llama_key, gemini_key, top_k, temperature, symptoms], outputs=output, api_name="auditor")
|
103 |
+
output = gr.Textbox(label="LLM ranking output status with disease diagnosed by Majority of LLM models with a confidence score", value=output.value)
|
104 |
|
105 |
ui.launch(share=True)
|