Spaces:
Runtime error
Runtime error
Update demo_gradio.py
Browse files- demo_gradio.py +8 -7
demo_gradio.py
CHANGED
|
@@ -175,22 +175,23 @@ css = """
|
|
| 175 |
with gr.Blocks(css=css) as demo:
|
| 176 |
with gr.Column(elem_id="col-container"):
|
| 177 |
gr.Markdown("""
|
| 178 |
-
#
|
| 179 |
-
<p>
|
| 180 |
-
|
|
|
|
| 181 |
""")
|
| 182 |
with gr.Row():
|
| 183 |
with gr.Column():
|
| 184 |
with gr.Row():
|
| 185 |
-
input_image = gr.Image(type="pil", label="
|
| 186 |
-
input_image2 = gr.Image(type="pil", label = "
|
| 187 |
-
submit_btn = gr.Button("
|
| 188 |
gr.Examples(
|
| 189 |
examples = [["demo_assets/input_imgs/pumpkin.png", "demo_assets/material_exemplars/cup_glaze.png"]],
|
| 190 |
inputs = [input_image, input_image2]
|
| 191 |
)
|
| 192 |
with gr.Column():
|
| 193 |
-
output_image = gr.Image(label="
|
| 194 |
submit_btn.click(fn=greet, inputs=[input_image, input_image2], outputs=[output_image])
|
| 195 |
|
| 196 |
demo.queue().launch()
|
|
|
|
| 175 |
with gr.Blocks(css=css) as demo:
|
| 176 |
with gr.Column(elem_id="col-container"):
|
| 177 |
gr.Markdown("""
|
| 178 |
+
# KI-Magix für Anne
|
| 179 |
+
<p>Lade das Input Bild und das Material-Sample hoch. (Beide Bilder sollten 1024*1024px sein und max. 300kB haben) (-->Memo: Test this!)<br />
|
| 180 |
+
Du kannst dich insbesondere mit Lichtsituationen und Belichtung spielen, da das die Info ist, welche die KI verarbeitet.<br />
|
| 181 |
+
Bitte den Link nicht weitergeben oder irgendwie veröffentlichen <3</p>
|
| 182 |
""")
|
| 183 |
with gr.Row():
|
| 184 |
with gr.Column():
|
| 185 |
with gr.Row():
|
| 186 |
+
input_image = gr.Image(type="pil", label="Input")
|
| 187 |
+
input_image2 = gr.Image(type="pil", label = "Sample")
|
| 188 |
+
submit_btn = gr.Button("Simsalabim")
|
| 189 |
gr.Examples(
|
| 190 |
examples = [["demo_assets/input_imgs/pumpkin.png", "demo_assets/material_exemplars/cup_glaze.png"]],
|
| 191 |
inputs = [input_image, input_image2]
|
| 192 |
)
|
| 193 |
with gr.Column():
|
| 194 |
+
output_image = gr.Image(label="Magix uWu")
|
| 195 |
submit_btn.click(fn=greet, inputs=[input_image, input_image2], outputs=[output_image])
|
| 196 |
|
| 197 |
demo.queue().launch()
|