Spaces:
Running
Running
move main
Browse files- app.py +4 -5
- links.html → demo_tools.html +4 -6
app.py
CHANGED
@@ -81,8 +81,6 @@ css="""
|
|
81 |
height: 128px;
|
82 |
object-fit: cover;
|
83 |
}
|
84 |
-
}
|
85 |
-
}
|
86 |
|
87 |
.text {
|
88 |
font-size: 16px;
|
@@ -92,7 +90,7 @@ css="""
|
|
92 |
with gr.Blocks(css=css, elem_id="demo-container") as demo:
|
93 |
with gr.Column():
|
94 |
gr.HTML(read_file("demo_header.html"))
|
95 |
-
gr.HTML(read_file("
|
96 |
with gr.Row():
|
97 |
with gr.Column():
|
98 |
image = gr.ImageEditor(height=800,sources=['upload','clipboard'],transforms=[],image_mode='RGB', layers=False, elem_id="Foreground", type="pil", label="Foreground",brush=gr.Brush(colors=["#fff"], color_mode="fixed"))
|
@@ -120,7 +118,7 @@ with gr.Blocks(css=css, elem_id="demo-container") as demo:
|
|
120 |
id_input=gr.Text(label="Name", visible=False)
|
121 |
|
122 |
with gr.Column():
|
123 |
-
image_out = gr.Image(height=800,sources=[],label="Output", elem_id="output-img",format="
|
124 |
mask_out = gr.Image(height=800,sources=[],label="Mask", elem_id="mask-img",format="jpeg")
|
125 |
|
126 |
|
@@ -138,4 +136,5 @@ with gr.Blocks(css=css, elem_id="demo-container") as demo:
|
|
138 |
)
|
139 |
gr.HTML(read_file("demo_footer.html"))
|
140 |
|
141 |
-
|
|
|
|
81 |
height: 128px;
|
82 |
object-fit: cover;
|
83 |
}
|
|
|
|
|
84 |
|
85 |
.text {
|
86 |
font-size: 16px;
|
|
|
90 |
with gr.Blocks(css=css, elem_id="demo-container") as demo:
|
91 |
with gr.Column():
|
92 |
gr.HTML(read_file("demo_header.html"))
|
93 |
+
gr.HTML(read_file("demo_tools.html"))
|
94 |
with gr.Row():
|
95 |
with gr.Column():
|
96 |
image = gr.ImageEditor(height=800,sources=['upload','clipboard'],transforms=[],image_mode='RGB', layers=False, elem_id="Foreground", type="pil", label="Foreground",brush=gr.Brush(colors=["#fff"], color_mode="fixed"))
|
|
|
118 |
id_input=gr.Text(label="Name", visible=False)
|
119 |
|
120 |
with gr.Column():
|
121 |
+
image_out = gr.Image(height=800,sources=[],label="Output", elem_id="output-img",format="webp")
|
122 |
mask_out = gr.Image(height=800,sources=[],label="Mask", elem_id="mask-img",format="jpeg")
|
123 |
|
124 |
|
|
|
136 |
)
|
137 |
gr.HTML(read_file("demo_footer.html"))
|
138 |
|
139 |
+
if __name__ == "__main__":
|
140 |
+
demo.launch()
|
links.html → demo_tools.html
RENAMED
@@ -1,12 +1,10 @@
|
|
1 |
<div style="text-align: center;">
|
2 |
-
<p><a href="https://huggingface.co/spaces/Akjava/
|
3 |
-
<p><a href="https://huggingface.co/spaces/Akjava/WebPTalkHead">[WebP-3F-TH]</a>
|
|
|
4 |
<a href="https://huggingface.co/spaces/Akjava/flux1-schnell-mask-inpaint">[Flux1-Inpaint(GPU)]</a>
|
5 |
<a href="https://huggingface.co/spaces/Akjava/OpenCVInpaintCPU">[OpenCV-Inapint]</a>
|
6 |
<a href="https://huggingface.co/spaces/Akjava/Simple-Whitebalance-Image">[Whitebalance]</a>
|
7 |
<a href="https://huggingface.co/spaces/Akjava/Simple-Mask-Paste-Image">[Paste Image]</a>
|
8 |
-
<a href=" https://huggingface.co/spaces/Akjava/WebP-Resize-Convert">[WebP Resize Convert]</a></p>
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
</div>
|
|
|
1 |
<div style="text-align: center;">
|
2 |
+
<p><a href="https://huggingface.co/spaces/Akjava/AIDiagramChatWithVoice-FaceCharacter">AI Diagram Chat with Voice/Face Character Making Tools</a></p>
|
3 |
+
<p><a href="https://huggingface.co/spaces/Akjava/WebPTalkHead">[WebP-3F-TH]</a>
|
4 |
+
<a href="https://huggingface.co/spaces/Akjava/flux1-schnell-img2img">[Flux1-Img2Img(GPU)]</a>
|
5 |
<a href="https://huggingface.co/spaces/Akjava/flux1-schnell-mask-inpaint">[Flux1-Inpaint(GPU)]</a>
|
6 |
<a href="https://huggingface.co/spaces/Akjava/OpenCVInpaintCPU">[OpenCV-Inapint]</a>
|
7 |
<a href="https://huggingface.co/spaces/Akjava/Simple-Whitebalance-Image">[Whitebalance]</a>
|
8 |
<a href="https://huggingface.co/spaces/Akjava/Simple-Mask-Paste-Image">[Paste Image]</a>
|
9 |
+
<a href=" https://huggingface.co/spaces/Akjava/WebP-Resize-Convert">[WebP Resize Convert]</a></p>
|
|
|
|
|
|
|
10 |
</div>
|