Spaces:
Build error
Build error
bugfix @
Browse files
app.py
CHANGED
@@ -104,7 +104,7 @@ def get_negative_prompt(gender):
|
|
104 |
else: # Random
|
105 |
return "(deformed iris, deformed pupils, semi-realistic, cgi, 3d, render, sketch, cartoon, drawing, anime, mutated hands and fingers:1.4), (deformed, distorted, disfigured:1.3), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, disconnected limbs, mutation, mutated, ugly, disgusting, amputation"
|
106 |
|
107 |
-
spaces.GPU(duration=40)
|
108 |
def generate_image(face_image_1, face_image_2, prompt, gender, width, height, num_inference_steps, seed):
|
109 |
if seed is None:
|
110 |
seed = int.from_bytes(os.urandom(4), "big")
|
|
|
104 |
else: # Random
|
105 |
return "(deformed iris, deformed pupils, semi-realistic, cgi, 3d, render, sketch, cartoon, drawing, anime, mutated hands and fingers:1.4), (deformed, distorted, disfigured:1.3), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, disconnected limbs, mutation, mutated, ugly, disgusting, amputation"
|
106 |
|
107 |
+
@spaces.GPU(duration=40)
|
108 |
def generate_image(face_image_1, face_image_2, prompt, gender, width, height, num_inference_steps, seed):
|
109 |
if seed is None:
|
110 |
seed = int.from_bytes(os.urandom(4), "big")
|