Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
|
|
| 1 |
from moviepy.editor import VideoFileClip, concatenate_videoclips, AudioFileClip, CompositeAudioClip
|
| 2 |
import tempfile
|
| 3 |
-
import streamlit as st
|
| 4 |
import cv2
|
| 5 |
import base64
|
| 6 |
import io
|
|
@@ -9,6 +9,9 @@ import os
|
|
| 9 |
import requests
|
| 10 |
import tempfile
|
| 11 |
|
|
|
|
|
|
|
|
|
|
| 12 |
# Load environment variables
|
| 13 |
from dotenv import load_dotenv
|
| 14 |
load_dotenv('.env.local')
|
|
@@ -115,7 +118,7 @@ def merge_audio_video(video_filename, audio_filename, output_filename, overlay_a
|
|
| 115 |
return output_filename
|
| 116 |
|
| 117 |
def main():
|
| 118 |
-
st.set_page_config(page_title="AI Voiceover", page_icon="🔮")
|
| 119 |
st.title("Pixio Video to Voiceover 🎥🔮")
|
| 120 |
|
| 121 |
if not check_password():
|
|
|
|
| 1 |
+
import streamlit as st
|
| 2 |
from moviepy.editor import VideoFileClip, concatenate_videoclips, AudioFileClip, CompositeAudioClip
|
| 3 |
import tempfile
|
|
|
|
| 4 |
import cv2
|
| 5 |
import base64
|
| 6 |
import io
|
|
|
|
| 9 |
import requests
|
| 10 |
import tempfile
|
| 11 |
|
| 12 |
+
# Set up page configuration first
|
| 13 |
+
st.set_page_config(page_title="AI Voiceover", page_icon="🔮")
|
| 14 |
+
|
| 15 |
# Load environment variables
|
| 16 |
from dotenv import load_dotenv
|
| 17 |
load_dotenv('.env.local')
|
|
|
|
| 118 |
return output_filename
|
| 119 |
|
| 120 |
def main():
|
| 121 |
+
# st.set_page_config(page_title="AI Voiceover", page_icon="🔮")
|
| 122 |
st.title("Pixio Video to Voiceover 🎥🔮")
|
| 123 |
|
| 124 |
if not check_password():
|