faiimea commited on
Commit
ad523e0
·
verified ·
1 Parent(s): 8f6aac1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -1
app.py CHANGED
@@ -203,7 +203,18 @@ local_video_content = get_video_content(local_video_path)
203
 
204
  # 创建Gradio界面
205
  with gr.Blocks() as demo:
206
- gr.Markdown("## Video Matting")
 
 
 
 
 
 
 
 
 
 
 
207
  with gr.Row():
208
  video_src = gr.File(label="Upload Source Video (.mp4)", type="binary", file_types=["mp4"])
209
  video_bgr = gr.File(label="Upload Background Image (.png)", type="binary", file_types=["png"])
 
203
 
204
  # 创建Gradio界面
205
  with gr.Blocks() as demo:
206
+ gr.Markdown(
207
+ '''
208
+ This space displays how to perform Video Matting.
209
+ ## How to use this Space?
210
+ - Upload a video, preferably with a duration of less than 10 seconds.
211
+ - Upload a photo of the background of video.
212
+ - You will receive the result of the face swap after 5-10 minutes.
213
+ - Click the 'clear' button to clear all the files.
214
+ ## Examples
215
+ - You can get the test examples from our [Roop Dataset Repo.](https://huggingface.co/datasets/SJTU-TES/VideoMatting)
216
+ '''
217
+ )
218
  with gr.Row():
219
  video_src = gr.File(label="Upload Source Video (.mp4)", type="binary", file_types=["mp4"])
220
  video_bgr = gr.File(label="Upload Background Image (.png)", type="binary", file_types=["png"])