Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -97,8 +97,8 @@ def respond(
|
|
97 |
image_bytes.seek(0)
|
98 |
|
99 |
# Use InferenceClient to handle the image and text input to the model
|
100 |
-
#
|
101 |
-
response_data = client.text_to_image(images=image_bytes,
|
102 |
|
103 |
# Process the response from the model
|
104 |
response = ""
|
|
|
97 |
image_bytes.seek(0)
|
98 |
|
99 |
# Use InferenceClient to handle the image and text input to the model
|
100 |
+
# Pass the text message as the 'prompt'
|
101 |
+
response_data = client.text_to_image(images=image_bytes, prompt=message) # Add 'prompt' as required
|
102 |
|
103 |
# Process the response from the model
|
104 |
response = ""
|