Spaces:
Runtime error
Runtime error
update
Browse files
app.py
CHANGED
@@ -104,6 +104,7 @@ def query_api(audio_bytes: bytes):
|
|
104 |
|
105 |
#getting word timestamps from character timestamps
|
106 |
def get_word_timestamps(timestamps):
|
|
|
107 |
words, word = [], []
|
108 |
letter_timestamp, word_timestamp, words_timestamp = [], [], []
|
109 |
for idx,entry in enumerate(timestamps):
|
@@ -117,6 +118,7 @@ def get_word_timestamps(timestamps):
|
|
117 |
word, word_timestamp, letter_timestamp = [], [], []
|
118 |
|
119 |
words = [word.strip() for word in words]
|
|
|
120 |
return words, words_timestamp
|
121 |
|
122 |
|
@@ -213,7 +215,7 @@ demo = gr.Blocks()
|
|
213 |
with demo:
|
214 |
gr.Markdown("""# **Watch your video in SloMo or in Timelapse!** """)
|
215 |
gr.Markdown("""
|
216 |
-
###
|
217 |
|
218 |
A Space by [Yuvraj Sharma](https://huggingface.co/ysharma).
|
219 |
|
|
|
104 |
|
105 |
#getting word timestamps from character timestamps
|
106 |
def get_word_timestamps(timestamps):
|
107 |
+
print("********* inside get_word_timestamps() **************")
|
108 |
words, word = [], []
|
109 |
letter_timestamp, word_timestamp, words_timestamp = [], [], []
|
110 |
for idx,entry in enumerate(timestamps):
|
|
|
118 |
word, word_timestamp, letter_timestamp = [], [], []
|
119 |
|
120 |
words = [word.strip() for word in words]
|
121 |
+
print(f"words created from timestamps are : {words}")
|
122 |
return words, words_timestamp
|
123 |
|
124 |
|
|
|
215 |
with demo:
|
216 |
gr.Markdown("""# **Watch your video in SloMo or in Timelapse!** """)
|
217 |
gr.Markdown("""
|
218 |
+
### Editing your video using ASR pipeline..
|
219 |
|
220 |
A Space by [Yuvraj Sharma](https://huggingface.co/ysharma).
|
221 |
|