Spaces:
Build error
Build error
juancopi81
commited on
Commit
•
82c7c76
1
Parent(s):
cc7fff5
Change logger
Browse files- app.py +2 -2
- videocreator.py +2 -4
app.py
CHANGED
@@ -204,8 +204,8 @@ with block as demo:
|
|
204 |
</h1>
|
205 |
</div>
|
206 |
<p style="margin-bottom: 10px; font-size: 94%">
|
207 |
-
Enter the URL of a
|
208 |
-
It works for audio books, history lessons, etc. Try it out with a short video (less than
|
209 |
</p>
|
210 |
<p style="margin-bottom: 10px; font-size: 94%">
|
211 |
Running on <b>{device_print}</b>
|
|
|
204 |
</h1>
|
205 |
</div>
|
206 |
<p style="margin-bottom: 10px; font-size: 94%">
|
207 |
+
Enter the URL of a YouTube video (in Spanish) and you'll recive a video with an illustraded summary.
|
208 |
+
It works for audio books, history lessons, etc. Try it out with a short video (less than 4 minutes).
|
209 |
</p>
|
210 |
<p style="margin-bottom: 10px; font-size: 94%">
|
211 |
Running on <b>{device_print}</b>
|
videocreator.py
CHANGED
@@ -46,16 +46,14 @@ class VideoCreator:
|
|
46 |
final_video = concatenate_videoclips(videos_to_concatenate)
|
47 |
try:
|
48 |
final_video.write_videofile("final_video.mp4",
|
49 |
-
threads=4
|
50 |
-
logger=None)
|
51 |
print("Saved .mp4 without Exception at final_video.mp4")
|
52 |
return "final_video.mp4"
|
53 |
except IndexError:
|
54 |
# Short by one frame, so get rid on the last frame:
|
55 |
final_video = final_video.subclip(t_end=(video_clip.duration - 1.0/final_video.fps))
|
56 |
final_video.write_videofile("final_video.mp4",
|
57 |
-
threads=4
|
58 |
-
logger=None)
|
59 |
print("Saved .mp4 after Exception at final_video.mp4")
|
60 |
return "final_video.mp4"
|
61 |
except Exception as e:
|
|
|
46 |
final_video = concatenate_videoclips(videos_to_concatenate)
|
47 |
try:
|
48 |
final_video.write_videofile("final_video.mp4",
|
49 |
+
threads=4)
|
|
|
50 |
print("Saved .mp4 without Exception at final_video.mp4")
|
51 |
return "final_video.mp4"
|
52 |
except IndexError:
|
53 |
# Short by one frame, so get rid on the last frame:
|
54 |
final_video = final_video.subclip(t_end=(video_clip.duration - 1.0/final_video.fps))
|
55 |
final_video.write_videofile("final_video.mp4",
|
56 |
+
threads=4)
|
|
|
57 |
print("Saved .mp4 after Exception at final_video.mp4")
|
58 |
return "final_video.mp4"
|
59 |
except Exception as e:
|