Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -176,7 +176,6 @@ def crop_and_process_image(input_img,input_age,output_ag):
|
|
176 |
return output
|
177 |
|
178 |
# Define the input image component with the crop tool
|
179 |
-
input_image = gr.Image(label="Input Image", interactive=True)
|
180 |
|
181 |
# Define the output image component
|
182 |
output_image = gr.Image(label="Output Image", type="pil")
|
@@ -203,4 +202,4 @@ def process_image(input_img,input_age,output_age):
|
|
203 |
|
204 |
|
205 |
# Create the Gradio interface
|
206 |
-
gr.Interface(fn=process_image, inputs=[
|
|
|
176 |
return output
|
177 |
|
178 |
# Define the input image component with the crop tool
|
|
|
179 |
|
180 |
# Define the output image component
|
181 |
output_image = gr.Image(label="Output Image", type="pil")
|
|
|
202 |
|
203 |
|
204 |
# Create the Gradio interface
|
205 |
+
gr.Interface(fn=process_image, inputs=[gr.Image(source="upload", type="filepath", label="init_img | 512*512 px"),input_age,output_age], outputs=output_image, title="Age Transformation").launch(debug=True)
|