Pavithiran commited on
Commit
3bc22ef
·
verified ·
1 Parent(s): c888270

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- # Use the correct method text_to_image
101
- response_data = client.text_to_image(images=image_bytes, text=message) # Corrected method name
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 = ""