Spaces:
Sleeping
Sleeping
Aishwarya Solanki
commited on
Commit
·
ab85d06
1
Parent(s):
b128bc4
checking
Browse files
app.py
CHANGED
@@ -95,12 +95,13 @@ 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 |
-
|
|
|
|
|
103 |
llm_btn.click(fn=diagnose, inputs=[gpt_key, llama_key, gemini_key, top_k, temperature, symptoms], outputs=output, api_name="auditor")
|
104 |
-
|
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 |
+
|
102 |
+
llm_btn = gr.Button(value="Diagnose Disease", variant="primary", elem_id="diagnose")
|
103 |
+
output = gr.Textbox(label="LLM output with majority vote and confidence", interactive=False, placeholder="Output will appear here...")
|
104 |
llm_btn.click(fn=diagnose, inputs=[gpt_key, llama_key, gemini_key, top_k, temperature, symptoms], outputs=output, api_name="auditor")
|
105 |
+
|
106 |
|
107 |
ui.launch(share=True)
|