Rajan Sharma commited on
Commit
149cfa7
·
verified ·
1 Parent(s): d46abd4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
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(MODEL_ID)
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 guidance.",
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