ML-Motivators commited on
Commit
6943eee
·
verified ·
1 Parent(s): 843293d
Files changed (1) hide show
  1. 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
- demo = gr.Interface(human_img_orig, mask_gray)
240
- demo.launch()
 
 
 
 
 
 
 
 
 
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()