Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ def query_image(inputs):
|
|
15 |
response = requests.post(API_URL, headers=headers, json=payload)
|
16 |
image_bytes = response.content
|
17 |
image = Image.open(io.BytesIO(image_bytes))
|
18 |
-
return image
|
19 |
|
20 |
# Define Gradio Blocks UI
|
21 |
with gr.Blocks(theme="nevreal/blues") as demo:
|
|
|
15 |
response = requests.post(API_URL, headers=headers, json=payload)
|
16 |
image_bytes = response.content
|
17 |
image = Image.open(io.BytesIO(image_bytes))
|
18 |
+
return image, inputs
|
19 |
|
20 |
# Define Gradio Blocks UI
|
21 |
with gr.Blocks(theme="nevreal/blues") as demo:
|