Spaces:
Runtime error
Runtime error
shadowlilac
commited on
Commit
•
62e7359
1
Parent(s):
f498d50
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
from PIL import Image
|
3 |
from transformers import AutoProcessor, BlipForConditionalGeneration
|
4 |
-
|
5 |
processor = AutoProcessor.from_pretrained("shadowlilac/visor", api_key=os.getenv('HUGGING_FACE_HUB_TOKEN'))
|
6 |
model = BlipForConditionalGeneration.from_pretrained("shadowlilac/visor", api_key=os.getenv('HUGGING_FACE_HUB_TOKEN'))
|
7 |
|
|
|
1 |
import gradio as gr
|
2 |
from PIL import Image
|
3 |
from transformers import AutoProcessor, BlipForConditionalGeneration
|
4 |
+
import os
|
5 |
processor = AutoProcessor.from_pretrained("shadowlilac/visor", api_key=os.getenv('HUGGING_FACE_HUB_TOKEN'))
|
6 |
model = BlipForConditionalGeneration.from_pretrained("shadowlilac/visor", api_key=os.getenv('HUGGING_FACE_HUB_TOKEN'))
|
7 |
|