Spaces:
Running
Running
Update multimodel_services/replicate_generation_service.py
Browse files
multimodel_services/replicate_generation_service.py
CHANGED
|
@@ -35,10 +35,9 @@ def generate_image_with_model(model_name: str, prompt: str, ui_params: Optional[
|
|
| 35 |
input_data["image_input"] = [image_data_url]
|
| 36 |
|
| 37 |
print(f"Generating with {model_name}")
|
| 38 |
-
print(f"Input: {input_data}")
|
| 39 |
|
| 40 |
# Generate image
|
| 41 |
-
output =
|
| 42 |
|
| 43 |
# Handle different output types
|
| 44 |
if hasattr(output, 'read'):
|
|
|
|
| 35 |
input_data["image_input"] = [image_data_url]
|
| 36 |
|
| 37 |
print(f"Generating with {model_name}")
|
|
|
|
| 38 |
|
| 39 |
# Generate image
|
| 40 |
+
output = client.run(model_name, input=input_data)
|
| 41 |
|
| 42 |
# Handle different output types
|
| 43 |
if hasattr(output, 'read'):
|