charliebaby2023 commited on
Commit
2c694c9
Β·
verified Β·
1 Parent(s): 6e00654

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
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