Update app.py
Browse files
app.py
CHANGED
@@ -76,7 +76,8 @@ def star_fn(inp):
|
|
76 |
print("removing background")
|
77 |
out=rm(outp)
|
78 |
print("resizing")
|
79 |
-
outrs = out.resize((24,24))
|
|
|
80 |
|
81 |
outrs.save(f"{uid}_star.png")
|
82 |
out_file = os.path.abspath(f"{uid}_star.png")
|
@@ -91,7 +92,7 @@ with gr.Blocks() as app:
|
|
91 |
prompt_sky=gr.Textbox(label="Background",value="beautiful landscape, real, 8k")
|
92 |
btn_sky=gr.Button("Make")
|
93 |
with gr.Row():
|
94 |
-
prompt_star=gr.Textbox(label="Star",value="Star,
|
95 |
btn_star=gr.Button("Make")
|
96 |
with gr.Row():
|
97 |
update_game=gr.Button("Use Image")
|
|
|
76 |
print("removing background")
|
77 |
out=rm(outp)
|
78 |
print("resizing")
|
79 |
+
#outrs = out.resize((24,24))
|
80 |
+
outrs = out.resize((36,36))
|
81 |
|
82 |
outrs.save(f"{uid}_star.png")
|
83 |
out_file = os.path.abspath(f"{uid}_star.png")
|
|
|
92 |
prompt_sky=gr.Textbox(label="Background",value="beautiful landscape, real, 8k")
|
93 |
btn_sky=gr.Button("Make")
|
94 |
with gr.Row():
|
95 |
+
prompt_star=gr.Textbox(label="Star",value="Colorful Star, blank background")
|
96 |
btn_star=gr.Button("Make")
|
97 |
with gr.Row():
|
98 |
update_game=gr.Button("Use Image")
|