Nemil commited on
Commit
092865c
Β·
verified Β·
1 Parent(s): 12cf43d

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -3,9 +3,10 @@ import torch
3
  from PIL import Image
4
  import requests
5
  import traceback
 
6
 
7
  from huggingface_hub import login
8
- login(token=os.environ.get("HF_TOKEN"))
9
 
10
  class Image2Text:
11
  def __init__(self):
@@ -92,7 +93,6 @@ class Image2Text:
92
  return generated_caption
93
 
94
  import json
95
- import os
96
  from pprint import pprint
97
 
98
  import bitsandbytes as bnb
 
3
  from PIL import Image
4
  import requests
5
  import traceback
6
+ import os
7
 
8
  from huggingface_hub import login
9
+ login(token=os.getenv("HF_TOKEN"))
10
 
11
  class Image2Text:
12
  def __init__(self):
 
93
  return generated_caption
94
 
95
  import json
 
96
  from pprint import pprint
97
 
98
  import bitsandbytes as bnb