Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -189,9 +189,9 @@ def process_image(input_img,input_age,output_age):
|
|
189 |
output = Image.fromarray(output)
|
190 |
return output
|
191 |
|
192 |
-
description="Enter age of input image and desired age. Crop out
|
193 |
|
194 |
|
195 |
|
196 |
# Create the Gradio interface
|
197 |
-
gr.Interface(fn=process_image, inputs=[input_image,input_age,output_age], outputs=output_image,description=description, title="Age Transformation",examples=[["example_image_output.png",20,40]]).launch(debug=True)
|
|
|
189 |
output = Image.fromarray(output)
|
190 |
return output
|
191 |
|
192 |
+
description="Enter age of input image and desired age. Crop out background. Better results on high resolution (512x512 face). To avoid background/hair artifacts, use with a face parser."
|
193 |
|
194 |
|
195 |
|
196 |
# Create the Gradio interface
|
197 |
+
gr.Interface(fn=process_image, inputs=[input_image,input_age,output_age], outputs=output_image,description=description, title="Age Transformation",examples=[["example_image_input2.jpeg",30,65],["example_image_output.png",20,40]]).launch(debug=True)
|