Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -95,30 +95,13 @@ iface = gr.Interface(
|
|
95 |
layout="vertical",
|
96 |
css=css
|
97 |
)
|
98 |
-
|
99 |
# Display the welcome message
|
100 |
iface.add_text(welcome_message)
|
101 |
-
|
102 |
# Input elements
|
103 |
symptoms_input = iface.add_textbox("text", label="Symptoms", placeholder="Enter symptoms here")
|
104 |
question_input = iface.add_textbox("text", label="Question", placeholder="Enter question here")
|
105 |
-
|
106 |
# Output element
|
107 |
answer_output = iface.add_textbox("text", label="Answer")
|
108 |
|
109 |
-
# Example usage
|
110 |
-
symptoms = '''\
|
111 |
-
I'm a 35-year-old male and for the past few months, I've been experiencing fatigue,
|
112 |
-
increased sensitivity to cold, and dry, itchy skin.
|
113 |
-
'''
|
114 |
-
question = '''\
|
115 |
-
Could these symptoms be related to hypothyroidism?
|
116 |
-
If so, what steps should I take to get a proper diagnosis and discuss treatment options?
|
117 |
-
'''
|
118 |
-
|
119 |
-
examples = [
|
120 |
-
[symptoms, question]
|
121 |
-
]
|
122 |
-
|
123 |
# Assuming you have a function `askme` that processes the symptoms and question and returns a response
|
124 |
iface.launch(examples=examples)
|
|
|
95 |
layout="vertical",
|
96 |
css=css
|
97 |
)
|
|
|
98 |
# Display the welcome message
|
99 |
iface.add_text(welcome_message)
|
|
|
100 |
# Input elements
|
101 |
symptoms_input = iface.add_textbox("text", label="Symptoms", placeholder="Enter symptoms here")
|
102 |
question_input = iface.add_textbox("text", label="Question", placeholder="Enter question here")
|
|
|
103 |
# Output element
|
104 |
answer_output = iface.add_textbox("text", label="Answer")
|
105 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
106 |
# Assuming you have a function `askme` that processes the symptoms and question and returns a response
|
107 |
iface.launch(examples=examples)
|