hideosnes commited on
Commit
e0bd907
1 Parent(s): 991c987

Update demo_gradio.py

Browse files
Files changed (1) hide show
  1. 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
- # ZeST: Zero-Shot Material Transfer from a Single Image
179
- <p>Upload two images -- input image and material exemplar. (both 1024*1024 for better results) <br />
180
- ZeST extracts the material from the exemplar and cast it onto the input image following the original lighting cues.</p>
 
181
  """)
182
  with gr.Row():
183
  with gr.Column():
184
  with gr.Row():
185
- input_image = gr.Image(type="pil", label="input image")
186
- input_image2 = gr.Image(type="pil", label = "material examplar")
187
- submit_btn = gr.Button("Submit")
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="transfer result")
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()