Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,6 @@
|
|
1 |
import gradio as gr
|
2 |
import os
|
3 |
from share_btn import community_icon_html, loading_icon_html, share_js
|
4 |
-
import tkinter
|
5 |
-
from tkinter import messagebox
|
6 |
|
7 |
text_gen = gr.Interface.load(name="spaces/Gustavosta/MagicPrompt-Stable-Diffusion")
|
8 |
stable_diffusion = gr.Blocks.load(name="spaces/runwayml/stable-diffusion-v1-5")
|
@@ -10,6 +8,7 @@ stable_diffusion = gr.Blocks.load(name="spaces/runwayml/stable-diffusion-v1-5")
|
|
10 |
def get_images(prompt):
|
11 |
gallery_dir = stable_diffusion(prompt, fn_index=2)
|
12 |
sd_output = [os.path.join(gallery_dir, image) for image in os.listdir(gallery_dir)]
|
|
|
13 |
return sd_output, gr.update(visible=True), gr.update(visible=True), gr.update(visible=True)
|
14 |
|
15 |
def get_prompts(prompt_text):
|
|
|
1 |
import gradio as gr
|
2 |
import os
|
3 |
from share_btn import community_icon_html, loading_icon_html, share_js
|
|
|
|
|
4 |
|
5 |
text_gen = gr.Interface.load(name="spaces/Gustavosta/MagicPrompt-Stable-Diffusion")
|
6 |
stable_diffusion = gr.Blocks.load(name="spaces/runwayml/stable-diffusion-v1-5")
|
|
|
8 |
def get_images(prompt):
|
9 |
gallery_dir = stable_diffusion(prompt, fn_index=2)
|
10 |
sd_output = [os.path.join(gallery_dir, image) for image in os.listdir(gallery_dir)]
|
11 |
+
print("num1" + "num2")
|
12 |
return sd_output, gr.update(visible=True), gr.update(visible=True), gr.update(visible=True)
|
13 |
|
14 |
def get_prompts(prompt_text):
|