K00B404 commited on
Commit
2e10e77
·
verified ·
1 Parent(s): 4b1097a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -17
app.py CHANGED
@@ -62,19 +62,19 @@ logo = r"""
62
  <center><img src='https://photo-maker.github.io/assets/logo.png' alt='PhotoMaker logo' style="width:80px; margin-bottom:10px"></center>
63
  """
64
  title = r"""
65
- <h1 align="center">PhotoMaker: Customizing Realistic Human Photos via Stacked ID Embedding</h1>
66
  """
67
-
68
  description = r"""
69
- <b>Official 🤗 Gradio demo</b> for <a href='https://github.com/TencentARC/PhotoMaker' target='_blank'><b>PhotoMaker: Customizing Realistic Human Photos via Stacked ID Embedding</b></a>.<br>
70
  <br>
71
- For stylization, you could use our other gradio demo [PhotoMaker-Style](https://huggingface.co/spaces/TencentARC/PhotoMaker-Style).
72
  <br>
73
- ❗️❗️❗️[<b>Important</b>] Personalization steps:<br>
74
- 1️⃣ Upload images of someone you want to customize. minimum of 2 images, but more is better. Although we do not perform face detection, the face in the uploaded image should <b>occupy the majority of the image</b>.<br>
75
- 4️⃣ Click the <b>Submit</b> button to start customizing.
 
 
76
  """
77
-
78
  css = '''
79
  .gradio-container {width: 85% !important}
80
  '''
@@ -118,14 +118,5 @@ Iterates through the input image list and morphs each pair.
118
  Creates the final MP4 video using create_mp4.
119
  Returns the path to the video file.
120
 
121
- Interface:
122
- inputs: Changed to gr.Image with multiple=True for multi-image input.
123
- outputs: Changed to gr.Video to display the video directly within the interface.
124
-
125
- The fn is set to morpher.morph_image_chain to handle the morphing process.
126
 
127
- How to use:
128
- Select two or more images using the "select" tool in the "Images" input field.
129
- Click "Submit".
130
- The "Output Video" block will display the morphed video, which you can watch and download.
131
  '''
 
62
  <center><img src='https://photo-maker.github.io/assets/logo.png' alt='PhotoMaker logo' style="width:80px; margin-bottom:10px"></center>
63
  """
64
  title = r"""
65
+ <h1 align="center">🤗 Morphy the morpher 🤗</h1>
66
  """
 
67
  description = r"""
68
+ <b></b>
69
  <br>
70
+ Morph image chain into mp4
71
  <br>
72
+ How to use:<br>
73
+ -Select two or more images using the "select" tool in the "Images" input field.<br>
74
+ -Click "Submit".<br>
75
+
76
+ The "Output Video" block will display the morphed video, which you can watch and download.<br>
77
  """
 
78
  css = '''
79
  .gradio-container {width: 85% !important}
80
  '''
 
118
  Creates the final MP4 video using create_mp4.
119
  Returns the path to the video file.
120
 
 
 
 
 
 
121
 
 
 
 
 
122
  '''