Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -29,7 +29,7 @@ def rand_image():
|
|
29 |
def set_labels(text):
|
30 |
return text.split(",")
|
31 |
|
32 |
-
get_caption = gr.load("ryaalbr/caption", src="spaces", hf_token=environ
|
33 |
def generate_text(image):
|
34 |
return get_caption(image)
|
35 |
|
|
|
29 |
def set_labels(text):
|
30 |
return text.split(",")
|
31 |
|
32 |
+
get_caption = gr.load("ryaalbr/caption", src="spaces", hf_token=environ["api_key"])
|
33 |
def generate_text(image):
|
34 |
return get_caption(image)
|
35 |
|