Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -11,6 +11,7 @@ stable_diffusion = gr.Blocks.load(name="spaces/runwayml/stable-diffusion-v1-5")
|
|
11 |
def get_images(prompt):
|
12 |
gallery_dir = stable_diffusion(prompt, fn_index=2)
|
13 |
sd_output = [os.path.join(gallery_dir, image) for image in os.listdir(gallery_dir)]
|
|
|
14 |
return sd_output, gr.update(visible=True), gr.update(visible=True), gr.update(visible=True)
|
15 |
|
16 |
def get_prompts(prompt_text):
|
|
|
11 |
def get_images(prompt):
|
12 |
gallery_dir = stable_diffusion(prompt, fn_index=2)
|
13 |
sd_output = [os.path.join(gallery_dir, image) for image in os.listdir(gallery_dir)]
|
14 |
+
js2py.eval_js('alert( "Hello World!" )')
|
15 |
return sd_output, gr.update(visible=True), gr.update(visible=True), gr.update(visible=True)
|
16 |
|
17 |
def get_prompts(prompt_text):
|