Spaces:
Runtime error
Runtime error
Upload 2 files
Browse files
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(
|
|
|
|
| 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()
|