Spaces:
Sleeping
Sleeping
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -71,14 +71,14 @@ def generate_random_string(length):
|
|
71 |
characters = string.ascii_letters + string.digits
|
72 |
return ''.join(random.choice(characters) for _ in range(length))
|
73 |
|
74 |
-
@spaces.GPU(duration=
|
75 |
def Piper(_do,_dont):
|
76 |
return pipe(
|
77 |
_do,
|
78 |
-
height=
|
79 |
-
width=
|
80 |
negative_prompt=_dont,
|
81 |
-
num_inference_steps=
|
82 |
guidance_scale=9
|
83 |
)
|
84 |
|
@@ -103,7 +103,7 @@ css="""
|
|
103 |
max-width: 15cm;
|
104 |
}
|
105 |
#image-container {
|
106 |
-
aspect-ratio:
|
107 |
}
|
108 |
.dropdown-arrow {
|
109 |
display: none !important;
|
|
|
71 |
characters = string.ascii_letters + string.digits
|
72 |
return ''.join(random.choice(characters) for _ in range(length))
|
73 |
|
74 |
+
@spaces.GPU(duration=120)
|
75 |
def Piper(_do,_dont):
|
76 |
return pipe(
|
77 |
_do,
|
78 |
+
height=512,
|
79 |
+
width=768,
|
80 |
negative_prompt=_dont,
|
81 |
+
num_inference_steps=100,
|
82 |
guidance_scale=9
|
83 |
)
|
84 |
|
|
|
103 |
max-width: 15cm;
|
104 |
}
|
105 |
#image-container {
|
106 |
+
aspect-ratio: 3 / 2;
|
107 |
}
|
108 |
.dropdown-arrow {
|
109 |
display: none !important;
|