Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -35,7 +35,7 @@ def generate_text(image, model_name):
|
|
35 |
|
36 |
get_images = gr.load("ryaalbr/ImageSearch", src="spaces", hf_token=environ["api_key"])
|
37 |
def search_images(text):
|
38 |
-
return get_images(text)
|
39 |
|
40 |
with gr.Blocks() as demo:
|
41 |
|
|
|
35 |
|
36 |
get_images = gr.load("ryaalbr/ImageSearch", src="spaces", hf_token=environ["api_key"])
|
37 |
def search_images(text):
|
38 |
+
return get_images(text, api_name="images")
|
39 |
|
40 |
with gr.Blocks() as demo:
|
41 |
|