khalednabawi11 commited on
Commit
9bc45a2
·
verified ·
1 Parent(s): 5b78792

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -113,6 +113,9 @@ import torch
113
  from transformers import pipeline
114
  from PIL import Image
115
  import gradio as gr
 
 
 
116
 
117
  # Load the MedGemma pipeline
118
  pipe = pipeline(
 
113
  from transformers import pipeline
114
  from PIL import Image
115
  import gradio as gr
116
+ 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(