fffiloni commited on
Commit
24c50a4
1 Parent(s): 7175dd2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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)