Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -7,6 +7,7 @@ from transformers import BlipProcessor, BlipForConditionalGeneration
|
|
7 |
processor = BlipProcessor.from_pretrained("Salesforce/blip-image-captioning-large")
|
8 |
model = BlipForConditionalGeneration.from_pretrained("Salesforce/blip-image-captioning-large", torch_dtype=torch.float16).to("cuda")
|
9 |
|
|
|
10 |
hf_token = os.environ.get('HF_TOKEN')
|
11 |
from gradio_client import Client
|
12 |
client = Client("https://fffiloni-test-llama-api.hf.space/", hf_token=hf_token)
|
|
|
7 |
processor = BlipProcessor.from_pretrained("Salesforce/blip-image-captioning-large")
|
8 |
model = BlipForConditionalGeneration.from_pretrained("Salesforce/blip-image-captioning-large", torch_dtype=torch.float16).to("cuda")
|
9 |
|
10 |
+
import os
|
11 |
hf_token = os.environ.get('HF_TOKEN')
|
12 |
from gradio_client import Client
|
13 |
client = Client("https://fffiloni-test-llama-api.hf.space/", hf_token=hf_token)
|