Spaces:
Runtime error
Runtime error
Florin Bobiș
commited on
Commit
•
e9c3b30
1
Parent(s):
fbbd829
latest
Browse files
app.py
CHANGED
@@ -3,6 +3,7 @@ from instaloader import Instaloader, Profile, Post
|
|
3 |
from faster_whisper import WhisperModel
|
4 |
from moviepy.editor import VideoFileClip
|
5 |
import os
|
|
|
6 |
|
7 |
|
8 |
def get_post(code) -> Post:
|
@@ -73,7 +74,8 @@ def transcribe_post(id):
|
|
73 |
if post is None:
|
74 |
st.warning("Invalid reel!")
|
75 |
except Exception as e:
|
76 |
-
st.error(
|
|
|
77 |
if post:
|
78 |
ok = False
|
79 |
with st.spinner("Loading reel..."):
|
@@ -87,6 +89,7 @@ def transcribe_post(id):
|
|
87 |
)
|
88 |
ok = st.session_state.L.download_post(post, post.shortcode)
|
89 |
except Exception as e:
|
|
|
90 |
st.error("Cannot download reel!")
|
91 |
if ok:
|
92 |
file_name_audio = None
|
@@ -133,6 +136,7 @@ def load_profile(username):
|
|
133 |
)
|
134 |
st.info("Profile loaded!")
|
135 |
except Exception as e:
|
|
|
136 |
st.error("Profile not found!")
|
137 |
|
138 |
|
|
|
3 |
from faster_whisper import WhisperModel
|
4 |
from moviepy.editor import VideoFileClip
|
5 |
import os
|
6 |
+
import traceback
|
7 |
|
8 |
|
9 |
def get_post(code) -> Post:
|
|
|
74 |
if post is None:
|
75 |
st.warning("Invalid reel!")
|
76 |
except Exception as e:
|
77 |
+
st.error(traceback.format_exc())
|
78 |
+
|
79 |
if post:
|
80 |
ok = False
|
81 |
with st.spinner("Loading reel..."):
|
|
|
89 |
)
|
90 |
ok = st.session_state.L.download_post(post, post.shortcode)
|
91 |
except Exception as e:
|
92 |
+
st.error(traceback.format_exc())
|
93 |
st.error("Cannot download reel!")
|
94 |
if ok:
|
95 |
file_name_audio = None
|
|
|
136 |
)
|
137 |
st.info("Profile loaded!")
|
138 |
except Exception as e:
|
139 |
+
st.error(traceback.format_exc())
|
140 |
st.error("Profile not found!")
|
141 |
|
142 |
|