Spaces:
Build error
Build error
update
Browse files
app.py
CHANGED
|
@@ -189,13 +189,6 @@ with demo:
|
|
| 189 |
#to generate and display transcriptions for input video
|
| 190 |
text_transcript = gr.Textbox(label="Transcripts", lines = 10, interactive = True )
|
| 191 |
|
| 192 |
-
def load_gif_text(text):
|
| 193 |
-
print("****** inside load_gif_text() ******")
|
| 194 |
-
print("text for gif is : ", text)
|
| 195 |
-
return text
|
| 196 |
-
|
| 197 |
-
text_transcript.change(load_gif_text, text_transcript, text_gif_transcript )
|
| 198 |
-
|
| 199 |
#Just to move dgata between function hence keeping visible false
|
| 200 |
text_words = gr.Textbox(visible=False)
|
| 201 |
text_wordstimestamps = gr.Textbox(visible=False)
|
|
@@ -203,6 +196,13 @@ with demo:
|
|
| 203 |
#to copy paste required gif transcript / or to populate by itslef on pressing the button
|
| 204 |
text_gif_transcript = gr.Textbox(label="Transcripts", placeholder="Copy paste transcripts here to create GIF image" , lines = 3, interactive = True )
|
| 205 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 206 |
#to render video example on mouse hover/click
|
| 207 |
examples.render()
|
| 208 |
#to load sample video into input_video upon clicking on it
|
|
|
|
| 189 |
#to generate and display transcriptions for input video
|
| 190 |
text_transcript = gr.Textbox(label="Transcripts", lines = 10, interactive = True )
|
| 191 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 192 |
#Just to move dgata between function hence keeping visible false
|
| 193 |
text_words = gr.Textbox(visible=False)
|
| 194 |
text_wordstimestamps = gr.Textbox(visible=False)
|
|
|
|
| 196 |
#to copy paste required gif transcript / or to populate by itslef on pressing the button
|
| 197 |
text_gif_transcript = gr.Textbox(label="Transcripts", placeholder="Copy paste transcripts here to create GIF image" , lines = 3, interactive = True )
|
| 198 |
|
| 199 |
+
def load_gif_text(text):
|
| 200 |
+
print("****** inside load_gif_text() ******")
|
| 201 |
+
print("text for gif is : ", text)
|
| 202 |
+
return text
|
| 203 |
+
|
| 204 |
+
text_transcript.change(load_gif_text, text_transcript, text_gif_transcript )
|
| 205 |
+
|
| 206 |
#to render video example on mouse hover/click
|
| 207 |
examples.render()
|
| 208 |
#to load sample video into input_video upon clicking on it
|