Update app.py
Browse files
app.py
CHANGED
@@ -86,11 +86,10 @@ def gen_fn(model_str, prompt, negative_prompt):
|
|
86 |
return gr.Image(image_response) # You can handle it based on your model's return type
|
87 |
else:
|
88 |
print(f"Unexpected response type: {type(image_response)}")
|
89 |
-
return None
|
90 |
-
|
91 |
-
except Exception as e:
|
92 |
-
print(f"Error occurred: {e}")
|
93 |
return None
|
|
|
|
|
|
|
94 |
|
95 |
|
96 |
|
|
|
86 |
return gr.Image(image_response) # You can handle it based on your model's return type
|
87 |
else:
|
88 |
print(f"Unexpected response type: {type(image_response)}")
|
|
|
|
|
|
|
|
|
89 |
return None
|
90 |
+
except Exception as e:
|
91 |
+
print(f"Error occurred: {e}")
|
92 |
+
return None
|
93 |
|
94 |
|
95 |
|