Update app.py
Browse files
app.py
CHANGED
@@ -24,7 +24,7 @@ def generate_image(prompt, num_steps, guidance_scale, sampler, img_width, img_he
|
|
24 |
return image[0]
|
25 |
|
26 |
# Create the Gradio Blocks UI
|
27 |
-
with gr.Blocks() as demo:
|
28 |
gr.Markdown("# StablePY")
|
29 |
|
30 |
moelpah = gr.Textbox(label="model", placeholder="user/repo")
|
@@ -42,7 +42,7 @@ with gr.Blocks() as demo:
|
|
42 |
img_height = gr.Number(label="Image Height", value=1024)
|
43 |
|
44 |
with gr.Row():
|
45 |
-
upscaler_model_path = gr.Textbox(label="Upscaler Model Path", value="./upscaler/RealESRGAN_x4plus_anime_6B.pth")
|
46 |
upscaler_increases_size = gr.Number(label="Upscaler Increase Size", value=1.5)
|
47 |
hires_steps = gr.Number(label="Hires Steps", value=25)
|
48 |
|
|
|
24 |
return image[0]
|
25 |
|
26 |
# Create the Gradio Blocks UI
|
27 |
+
with gr.Blocks(gr.themes.Ocean(), title="StablePY") as demo:
|
28 |
gr.Markdown("# StablePY")
|
29 |
|
30 |
moelpah = gr.Textbox(label="model", placeholder="user/repo")
|
|
|
42 |
img_height = gr.Number(label="Image Height", value=1024)
|
43 |
|
44 |
with gr.Row():
|
45 |
+
upscaler_model_path = gr.Textbox(label="Upscaler Model Path", value="./upscaler/RealESRGAN_x4plus_anime_6B.pth", visible=False)
|
46 |
upscaler_increases_size = gr.Number(label="Upscaler Increase Size", value=1.5)
|
47 |
hires_steps = gr.Number(label="Hires Steps", value=25)
|
48 |
|