Spaces:
Sleeping
Sleeping
eternalBlissard
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -6,6 +6,7 @@ import ffmpeg
|
|
6 |
# import pymedia.muxer as muxer
|
7 |
import random
|
8 |
import string
|
|
|
9 |
|
10 |
def random_name_generator():
|
11 |
length = random.randint(10, 15) # Random length between 10 and 15
|
@@ -16,7 +17,7 @@ def random_name_generator():
|
|
16 |
# Example usage:
|
17 |
# print(random_name_generator())
|
18 |
|
19 |
-
|
20 |
def outputProducer(inputVideo):
|
21 |
print(inputVideo)
|
22 |
input_file = ffmpeg.input(inputVideo)
|
|
|
6 |
# import pymedia.muxer as muxer
|
7 |
import random
|
8 |
import string
|
9 |
+
import spaces
|
10 |
|
11 |
def random_name_generator():
|
12 |
length = random.randint(10, 15) # Random length between 10 and 15
|
|
|
17 |
# Example usage:
|
18 |
# print(random_name_generator())
|
19 |
|
20 |
+
@spaces.GPU(duration = 100)
|
21 |
def outputProducer(inputVideo):
|
22 |
print(inputVideo)
|
23 |
input_file = ffmpeg.input(inputVideo)
|