Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
|
|
2 |
from random import randint
|
3 |
from all_models import models
|
4 |
|
5 |
-
from externalmod import gr_Interface_load
|
6 |
|
7 |
import asyncio
|
8 |
import os
|
@@ -90,6 +90,7 @@ with gr.Blocks() as demo:
|
|
90 |
#stop_button = gr.Button('Stop', variant = 'secondary', interactive = False)
|
91 |
seed = gr.Slider(label="Use a seed to replicate the same image later", info="Max 3999999999", minimum=0, maximum=MAX_SEED, step=1, value=1)
|
92 |
seed_rand = gr.Button("Randomize Seed 🎲", size="sm", variant="secondary")
|
|
|
93 |
gen_button.click(lambda s: gr.update(interactive = True), None)
|
94 |
gr.HTML(
|
95 |
"""
|
|
|
2 |
from random import randint
|
3 |
from all_models import models
|
4 |
|
5 |
+
from externalmod import gr_Interface_load, randomize_seed
|
6 |
|
7 |
import asyncio
|
8 |
import os
|
|
|
90 |
#stop_button = gr.Button('Stop', variant = 'secondary', interactive = False)
|
91 |
seed = gr.Slider(label="Use a seed to replicate the same image later", info="Max 3999999999", minimum=0, maximum=MAX_SEED, step=1, value=1)
|
92 |
seed_rand = gr.Button("Randomize Seed 🎲", size="sm", variant="secondary")
|
93 |
+
seed_rand.click(randomize_seed, None, [seed], queue=False)
|
94 |
gen_button.click(lambda s: gr.update(interactive = True), None)
|
95 |
gr.HTML(
|
96 |
"""
|