removed examples
Browse files
app.py
CHANGED
@@ -15,8 +15,6 @@ import uuid
|
|
15 |
import random
|
16 |
from huggingface_hub import hf_hub_download
|
17 |
|
18 |
-
# NEW CODE HERE:
|
19 |
-
# If moviepy is not installed by default, you need to ensure your Space installs it (e.g. in requirements.txt).
|
20 |
from moviepy import VideoFileClip, concatenate_videoclips
|
21 |
|
22 |
#gradio.helpers.CACHED_FOLDER = '/data/cache'
|
@@ -210,25 +208,5 @@ with gr.Blocks() as demo:
|
|
210 |
api_name="video"
|
211 |
)
|
212 |
|
213 |
-
# You can still provide examples as you did before, but now the
|
214 |
-
# pipeline will chain 5 videos by default.
|
215 |
-
gr.Examples(
|
216 |
-
examples=[
|
217 |
-
"images/blink_meme.png",
|
218 |
-
"images/confused2_meme.png",
|
219 |
-
"images/disaster_meme.png",
|
220 |
-
"images/distracted_meme.png",
|
221 |
-
"images/hide_meme.png",
|
222 |
-
"images/nazare_meme.png",
|
223 |
-
"images/success_meme.png",
|
224 |
-
"images/willy_meme.png",
|
225 |
-
"images/wink_meme.png"
|
226 |
-
],
|
227 |
-
inputs=image,
|
228 |
-
outputs=[video, seed],
|
229 |
-
fn=sample_long,
|
230 |
-
cache_examples="lazy",
|
231 |
-
)
|
232 |
-
|
233 |
if __name__ == "__main__":
|
234 |
demo.launch(share=True, show_api=False)
|
|
|
15 |
import random
|
16 |
from huggingface_hub import hf_hub_download
|
17 |
|
|
|
|
|
18 |
from moviepy import VideoFileClip, concatenate_videoclips
|
19 |
|
20 |
#gradio.helpers.CACHED_FOLDER = '/data/cache'
|
|
|
208 |
api_name="video"
|
209 |
)
|
210 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
211 |
if __name__ == "__main__":
|
212 |
demo.launch(share=True, show_api=False)
|