ghitaben commited on
Commit
d902c1a
·
1 Parent(s): 5a0599c

Fix wrong Settings attribute names and add HfFolder compat shim

Browse files

- Rename local_medgemma_4b_model → medgemma_4b_model,
local_medgemma_27b_model → medgemma_27b_model,
local_txgemma_9b_model → txgemma_9b_model in Overview table
- Add HfFolder compatibility shim before import gradio to handle
old gradio/huggingface_hub version mismatch on HF Space

Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -621,9 +621,9 @@ _s = get_settings()
621
  OVERVIEW_MODELS_MD = f"""
622
  | Agent | Role | Model |
623
  |---|---|---|
624
- | 1, 2, 4 | Clinical reasoning | `{_s.local_medgemma_4b_model or "google/medgemma-4b-it"}` |
625
- | 3 | Trend analysis | `{_s.local_medgemma_27b_model or "google/medgemma-27b-text-it"}` |
626
- | 4 (safety) | Pharmacology check | `{_s.local_txgemma_9b_model or "google/txgemma-9b-predict"}` |
627
  | — | Semantic retrieval | `{_s.embedding_model_name}` |
628
  | — | Inference backend | HuggingFace Transformers · {_s.quantization} quant |
629
  """
 
621
  OVERVIEW_MODELS_MD = f"""
622
  | Agent | Role | Model |
623
  |---|---|---|
624
+ | 1, 2, 4 | Clinical reasoning | `{_s.medgemma_4b_model or "google/medgemma-4b-it"}` |
625
+ | 3 | Trend analysis | `{_s.medgemma_27b_model or "google/medgemma-27b-text-it"}` |
626
+ | 4 (safety) | Pharmacology check | `{_s.txgemma_9b_model or "google/txgemma-9b-predict"}` |
627
  | — | Semantic retrieval | `{_s.embedding_model_name}` |
628
  | — | Inference backend | HuggingFace Transformers · {_s.quantization} quant |
629
  """