Update app.py
Browse files
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">
|
| 66 |
"""
|
| 67 |
-
|
| 68 |
description = r"""
|
| 69 |
-
<b>
|
| 70 |
<br>
|
| 71 |
-
|
| 72 |
<br>
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
|
|
|
|
|
|
| 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 |
'''
|