Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -104,7 +104,7 @@ def gradio_interface(image_path):
|
|
104 |
with gr.Blocks() as interface:
|
105 |
with gr.Row():
|
106 |
with gr.Column():
|
107 |
-
image_input = gr.Image(type="filepath", label="Upload Image") # Image Upload
|
108 |
submit_btn = gr.Button("Submit", elem_id="submit_btn")
|
109 |
clear_btn = gr.Button("Clear", elem_id="clear_btn")
|
110 |
|
@@ -119,6 +119,6 @@ with gr.Blocks() as interface:
|
|
119 |
# The Clear button now resets the image input and clears all outputs
|
120 |
clear_btn.click(lambda: [None, None, None, None], inputs=[], outputs=[
|
121 |
image_input, palette_output, palette_image_output, css_code_output])
|
122 |
-
|
123 |
# Launch the interface
|
124 |
interface.launch(share = True)
|
|
|
104 |
with gr.Blocks() as interface:
|
105 |
with gr.Row():
|
106 |
with gr.Column():
|
107 |
+
image_input = gr.Image(type="filepath", label="Upload Image", value = "Xiang_image.webp") # Image Upload
|
108 |
submit_btn = gr.Button("Submit", elem_id="submit_btn")
|
109 |
clear_btn = gr.Button("Clear", elem_id="clear_btn")
|
110 |
|
|
|
119 |
# The Clear button now resets the image input and clears all outputs
|
120 |
clear_btn.click(lambda: [None, None, None, None], inputs=[], outputs=[
|
121 |
image_input, palette_output, palette_image_output, css_code_output])
|
122 |
+
|
123 |
# Launch the interface
|
124 |
interface.launch(share = True)
|