Spaces:
Sleeping
Sleeping
Commit
·
e800949
1
Parent(s):
4c4be97
fixed the token
Browse files
app.py
CHANGED
@@ -106,6 +106,14 @@ import gradio as gr
|
|
106 |
import os
|
107 |
import torch
|
108 |
from transformers import AutoProcessor, Gemma3ForConditionalGeneration, TextIteratorStreamer
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
109 |
model_id = os.getenv("MODEL_ID", "google/gemma-3-12b-it")
|
110 |
processor = AutoProcessor.from_pretrained(model_id, padding_side="left")
|
111 |
model = Gemma3ForConditionalGeneration.from_pretrained(
|
|
|
106 |
import os
|
107 |
import torch
|
108 |
from transformers import AutoProcessor, Gemma3ForConditionalGeneration, TextIteratorStreamer
|
109 |
+
import os
|
110 |
+
from huggingface_hub import login
|
111 |
+
|
112 |
+
hf_token = "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"
|
113 |
+
login(token=hf_token)
|
114 |
+
|
115 |
+
|
116 |
+
|
117 |
model_id = os.getenv("MODEL_ID", "google/gemma-3-12b-it")
|
118 |
processor = AutoProcessor.from_pretrained(model_id, padding_side="left")
|
119 |
model = Gemma3ForConditionalGeneration.from_pretrained(
|