Update app.py
Browse files
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(
|