Spaces:
No application file
No application file
added
Browse files- app (3).py +7 -5
app (3).py
CHANGED
@@ -1,6 +1,3 @@
|
|
1 |
-
# You can add the `demo = gr.Interface(fn=greet, inputs=[], outputs=[])` and `demo.launch()` at the end of your script, after all the function definitions and imports. Here's the updated version:
|
2 |
-
|
3 |
-
# ```python
|
4 |
import gradio as gr
|
5 |
import spaces
|
6 |
import torch
|
@@ -236,5 +233,10 @@ def start_tryon(dict, garm_img, garment_des, is_checked, is_checked_crop, denois
|
|
236 |
return human_img_orig, mask_gray
|
237 |
else:
|
238 |
return images[0], mask_gray
|
239 |
-
|
240 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
import spaces
|
3 |
import torch
|
|
|
233 |
return human_img_orig, mask_gray
|
234 |
else:
|
235 |
return images[0], mask_gray
|
236 |
+
|
237 |
+
# Gradio Interface
|
238 |
+
def greet():
|
239 |
+
return "Hello, welcome to the virtual try-on demo!"
|
240 |
+
|
241 |
+
demo = gr.Interface(fn=greet, inputs=[], outputs=[])
|
242 |
+
demo.launch()
|