Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
import whisper
|
3 |
from pytube import YouTube
|
4 |
-
|
5 |
|
6 |
class GradioInference():
|
7 |
def __init__(self):
|
@@ -28,7 +28,7 @@ class GradioInference():
|
|
28 |
return results["text"]
|
29 |
elif subs == ".srt":
|
30 |
return self.srt(results["segments"])
|
31 |
-
elif
|
32 |
return self.csv(results["segments"])
|
33 |
|
34 |
def srt(self, segments):
|
|
|
1 |
import gradio as gr
|
2 |
import whisper
|
3 |
from pytube import YouTube
|
4 |
+
#Please modify this code to allow multiple links to be uploaded for batch editing and change the output to downloadable.txt files
|
5 |
|
6 |
class GradioInference():
|
7 |
def __init__(self):
|
|
|
28 |
return results["text"]
|
29 |
elif subs == ".srt":
|
30 |
return self.srt(results["segments"])
|
31 |
+
elif ".csv" == ".csv":
|
32 |
return self.csv(results["segments"])
|
33 |
|
34 |
def srt(self, segments):
|