Spaces:
Sleeping
Sleeping
Arjun Singh
commited on
Commit
·
83dea57
1
Parent(s):
bf9e0dd
update
Browse files
app.py
CHANGED
|
@@ -47,7 +47,8 @@ def call_api_and_generate_image(negative_prompt, positive_prompt,seed, source_im
|
|
| 47 |
def generate_image(positive_prompt, negative_prompt,source_image):
|
| 48 |
seed = numpy.random.randint(0, 2**32 - 1)
|
| 49 |
try:
|
| 50 |
-
|
|
|
|
| 51 |
except Exception as e:
|
| 52 |
return None, f"Error: {str(e)}"
|
| 53 |
|
|
|
|
| 47 |
def generate_image(positive_prompt, negative_prompt,source_image):
|
| 48 |
seed = numpy.random.randint(0, 2**32 - 1)
|
| 49 |
try:
|
| 50 |
+
image_output = call_api_and_generate_image(negative_prompt, positive_prompt,seed,source_image)
|
| 51 |
+
return image_output,""
|
| 52 |
except Exception as e:
|
| 53 |
return None, f"Error: {str(e)}"
|
| 54 |
|