Spaces:
Sleeping
Sleeping
Rajan Sharma
commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -274,7 +274,7 @@ def check_connection(user_tz=None):
|
|
| 274 |
)
|
| 275 |
# Local HF metadata
|
| 276 |
api = HfApi(token=HF_TOKEN)
|
| 277 |
-
mi = api.model_info(
|
| 278 |
return (
|
| 279 |
f"{header(user_tz=user_tz)}"
|
| 280 |
f"Connection Status: ✅ Connected\n"
|
|
@@ -317,12 +317,13 @@ with gr.Blocks(theme=gr.themes.Default()) as demo:
|
|
| 317 |
fn=chat_fn,
|
| 318 |
type="messages",
|
| 319 |
additional_inputs=[user_tz_state], # pass timezone into chat_fn
|
| 320 |
-
description="A medical decision support system that provides healthcare-related information and
|
| 321 |
examples=[
|
| 322 |
-
"What are the symptoms of hypertension?",
|
| 323 |
-
"What are common drug interactions with aspirin?",
|
| 324 |
-
"What are the warning signs of diabetes?",
|
| 325 |
],
|
|
|
|
| 326 |
)
|
| 327 |
|
| 328 |
# Wire timezone into the connection check as well
|
|
|
|
| 274 |
)
|
| 275 |
# Local HF metadata
|
| 276 |
api = HfApi(token=HF_TOKEN)
|
| 277 |
+
mi = api.model_info(MODE_ID)
|
| 278 |
return (
|
| 279 |
f"{header(user_tz=user_tz)}"
|
| 280 |
f"Connection Status: ✅ Connected\n"
|
|
|
|
| 317 |
fn=chat_fn,
|
| 318 |
type="messages",
|
| 319 |
additional_inputs=[user_tz_state], # pass timezone into chat_fn
|
| 320 |
+
description="A medical decision support system that provides healthcare-related information and decision making support.",
|
| 321 |
examples=[
|
| 322 |
+
["What are the symptoms of hypertension?", ""],
|
| 323 |
+
["What are common drug interactions with aspirin?", ""],
|
| 324 |
+
["What are the warning signs of diabetes?", ""],
|
| 325 |
],
|
| 326 |
+
cache_examples=False,
|
| 327 |
)
|
| 328 |
|
| 329 |
# Wire timezone into the connection check as well
|