khalednabawi11 commited on
Commit
d8934b9
·
verified ·
1 Parent(s): 824a6f2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -117,10 +117,14 @@ from huggingface_hub import login
117
  hf_token = os.getenv("hf_token")
118
  login(token=hf_token)
119
 
 
 
 
 
120
  # Load the MedGemma pipeline
121
  pipe = pipeline(
122
  "image-text-to-text",
123
- model="google/medgemma-4b-it",
124
  torch_dtype=torch.bfloat16,
125
  device="cuda" if torch.cuda.is_available() else "cpu",
126
  )
 
117
  hf_token = os.getenv("hf_token")
118
  login(token=hf_token)
119
 
120
+
121
+ model_id = "google/gemma-3n-E4B-it-litert-preview"
122
+ # model_id = "google/medgemma-4b-it"
123
+
124
  # Load the MedGemma pipeline
125
  pipe = pipeline(
126
  "image-text-to-text",
127
+ model=model_id,
128
  torch_dtype=torch.bfloat16,
129
  device="cuda" if torch.cuda.is_available() else "cpu",
130
  )