Spaces:
Running
on
Zero
Running
on
Zero
developerskyebrowse
commited on
Commit
·
105ac9e
1
Parent(s):
5bfec22
jpg
Browse files- anime_app.py +3 -3
anime_app.py
CHANGED
@@ -156,7 +156,7 @@ def process_image(
|
|
156 |
custom_prompt=str(get_prompt(prompt, a_prompt))
|
157 |
negative_prompt=str(n_prompt)
|
158 |
global compiled
|
159 |
-
seed = random.randint(0, MAX_SEED)
|
160 |
generator = torch.cuda.manual_seed(seed)
|
161 |
if not compiled:
|
162 |
print("Not Compiled")
|
@@ -267,7 +267,7 @@ with gr.Blocks(theme=gr.themes.Soft(), css=css) as demo:
|
|
267 |
sources=["upload"],
|
268 |
show_label=True,
|
269 |
mirror_webcam=True,
|
270 |
-
format="
|
271 |
)
|
272 |
# run button
|
273 |
with gr.Column():
|
@@ -277,7 +277,7 @@ with gr.Blocks(theme=gr.themes.Soft(), css=css) as demo:
|
|
277 |
result = gr.Image(
|
278 |
label="Anime AI",
|
279 |
interactive=False,
|
280 |
-
format="
|
281 |
show_share_button= False,
|
282 |
)
|
283 |
# Use this image button
|
|
|
156 |
custom_prompt=str(get_prompt(prompt, a_prompt))
|
157 |
negative_prompt=str(n_prompt)
|
158 |
global compiled
|
159 |
+
seed = random.randint(0, MAX_SEED)
|
160 |
generator = torch.cuda.manual_seed(seed)
|
161 |
if not compiled:
|
162 |
print("Not Compiled")
|
|
|
267 |
sources=["upload"],
|
268 |
show_label=True,
|
269 |
mirror_webcam=True,
|
270 |
+
format="jpg",
|
271 |
)
|
272 |
# run button
|
273 |
with gr.Column():
|
|
|
277 |
result = gr.Image(
|
278 |
label="Anime AI",
|
279 |
interactive=False,
|
280 |
+
format="jpg",
|
281 |
show_share_button= False,
|
282 |
)
|
283 |
# Use this image button
|