Nemil commited on
Commit
12cf43d
β€’
1 Parent(s): 46a9783

Upload 2 files

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -5,7 +5,7 @@ import requests
5
  import traceback
6
 
7
  from huggingface_hub import login
8
- login(token=HF_TOKEN)
9
 
10
  class Image2Text:
11
  def __init__(self):
@@ -296,4 +296,4 @@ iface = gr.Interface(
296
  outputs=gr.outputs.Textbox(label="Caption")
297
  )
298
 
299
- iface.launch(share=True)
 
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):
 
296
  outputs=gr.outputs.Textbox(label="Caption")
297
  )
298
 
299
+ iface.launch()