Update app.py
Browse files
app.py
CHANGED
@@ -72,10 +72,10 @@ def star_fn(inp):
|
|
72 |
output=proc2.send_it(inp,5,1)
|
73 |
print(output)
|
74 |
outp=Image.open(output[0])
|
75 |
-
outp.save(f"{uid}_star.png")
|
76 |
|
77 |
print("removing background")
|
78 |
-
outbg=rm(
|
79 |
print("resizing")
|
80 |
out = outbg.resize((24,24))
|
81 |
#outbg.save(f"{uid}_star.png")
|
@@ -91,7 +91,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")
|
|
|
72 |
output=proc2.send_it(inp,5,1)
|
73 |
print(output)
|
74 |
outp=Image.open(output[0])
|
75 |
+
#outp.save(f"{uid}_star.png")
|
76 |
|
77 |
print("removing background")
|
78 |
+
outbg=rm(outp)
|
79 |
print("resizing")
|
80 |
out = outbg.resize((24,24))
|
81 |
#outbg.save(f"{uid}_star.png")
|
|
|
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, empty white background")
|
95 |
btn_star=gr.Button("Make")
|
96 |
with gr.Row():
|
97 |
update_game=gr.Button("Use Image")
|