ovi054 commited on
Commit
00956bf
·
verified ·
1 Parent(s): bdf57ad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -18,6 +18,7 @@ florence_processor = AutoProcessor.from_pretrained('microsoft/Florence-2-base',
18
 
19
  # api_key = os.getenv("HF_READ_TOKEN")
20
 
 
21
  def generate_caption(image):
22
  if not isinstance(image, Image.Image):
23
  image = Image.fromarray(image)
 
18
 
19
  # api_key = os.getenv("HF_READ_TOKEN")
20
 
21
+
22
  def generate_caption(image):
23
  if not isinstance(image, Image.Image):
24
  image = Image.fromarray(image)