Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -5,6 +5,11 @@ Author: Didier Guillevic
|
|
5 |
Date: 2025-03-16
|
6 |
"""
|
7 |
|
|
|
|
|
|
|
|
|
|
|
8 |
import gradio as gr
|
9 |
from transformers import AutoProcessor, Gemma3ForConditionalGeneration
|
10 |
from transformers import TextIteratorStreamer
|
|
|
5 |
Date: 2025-03-16
|
6 |
"""
|
7 |
|
8 |
+
from huggingface_hub import login, whoami
|
9 |
+
import os
|
10 |
+
token = os.getenv('HUGGINGFACE_HUB_TOKEN')
|
11 |
+
login(token=token)
|
12 |
+
|
13 |
import gradio as gr
|
14 |
from transformers import AutoProcessor, Gemma3ForConditionalGeneration
|
15 |
from transformers import TextIteratorStreamer
|