Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -51,13 +51,10 @@ with gr.Blocks(theme=gr.themes.Soft(primary_hue="blue", secondary_hue="sky"), cs
|
|
51 |
label="Describe Symptoms or Ask a Medical Question",
|
52 |
placeholder="e.g., 'I have a sharp pain behind my right eye and I'm sensitive to light' or 'What are the latest treatments for psoriatic arthritis?'"
|
53 |
)
|
54 |
-
# ==============================================================
|
55 |
-
# CORRECTED LINE: The incompatible 'info' argument has been removed.
|
56 |
image_input = gr.Image(
|
57 |
type="pil",
|
58 |
label="Optional: Upload a Relevant Image (e.g., skin rash)"
|
59 |
)
|
60 |
-
# ==============================================================
|
61 |
with gr.Column(scale=1):
|
62 |
synthesis_submit_btn = gr.Button("Synthesize Information", variant="primary", scale=1)
|
63 |
|
@@ -126,5 +123,8 @@ with gr.Blocks(theme=gr.themes.Soft(primary_hue="blue", secondary_hue="sky"), cs
|
|
126 |
|
127 |
# --- Launch the Application ---
|
128 |
if __name__ == "__main__":
|
129 |
-
#
|
130 |
-
|
|
|
|
|
|
|
|
51 |
label="Describe Symptoms or Ask a Medical Question",
|
52 |
placeholder="e.g., 'I have a sharp pain behind my right eye and I'm sensitive to light' or 'What are the latest treatments for psoriatic arthritis?'"
|
53 |
)
|
|
|
|
|
54 |
image_input = gr.Image(
|
55 |
type="pil",
|
56 |
label="Optional: Upload a Relevant Image (e.g., skin rash)"
|
57 |
)
|
|
|
58 |
with gr.Column(scale=1):
|
59 |
synthesis_submit_btn = gr.Button("Synthesize Information", variant="primary", scale=1)
|
60 |
|
|
|
123 |
|
124 |
# --- Launch the Application ---
|
125 |
if __name__ == "__main__":
|
126 |
+
# ==============================================================================
|
127 |
+
# CORRECTED LINE: We disable the experimental SSR mode for better stability on HF Spaces.
|
128 |
+
# We also remove `debug=True` as it's not needed for production deployment.
|
129 |
+
demo.launch(ssr_mode=False)
|
130 |
+
# ==============================================================================
|