Spaces:
Running
Running
Commit
•
885cebe
1
Parent(s):
17c7861
Update app.py
Browse files
app.py
CHANGED
@@ -16,8 +16,8 @@ def get_pexels_video(keyword):
|
|
16 |
"per_page": 10,
|
17 |
"orientation": "portrait",
|
18 |
"size": "large",
|
19 |
-
"min_width":
|
20 |
-
"min_height":
|
21 |
}
|
22 |
response = requests.get("https://api.pexels.com/videos/search", headers=headers, params=params)
|
23 |
|
@@ -36,7 +36,7 @@ def get_pexels_video(keyword):
|
|
36 |
|
37 |
# Function to generate voiceover using gTTS
|
38 |
def generate_voiceover(text, filename, speed=1.0):
|
39 |
-
tts = gTTS(text=text, lang='
|
40 |
tts.save(filename)
|
41 |
|
42 |
# Function to generate video content and create data.json
|
|
|
16 |
"per_page": 10,
|
17 |
"orientation": "portrait",
|
18 |
"size": "large",
|
19 |
+
"min_width": 1080,
|
20 |
+
"min_height": 1920,
|
21 |
}
|
22 |
response = requests.get("https://api.pexels.com/videos/search", headers=headers, params=params)
|
23 |
|
|
|
36 |
|
37 |
# Function to generate voiceover using gTTS
|
38 |
def generate_voiceover(text, filename, speed=1.0):
|
39 |
+
tts = gTTS(text=text, lang='pt', slow=False)
|
40 |
tts.save(filename)
|
41 |
|
42 |
# Function to generate video content and create data.json
|