Spaces:
Runtime error
Runtime error
Jiedong Yang
commited on
Commit
β’
e6e2169
1
Parent(s):
7d23a88
Upload app.py
Browse files
app.py
CHANGED
@@ -36,7 +36,6 @@ def audio_from_url(url, dst_dir='data', name=None, format='wav'):
|
|
36 |
os.makedirs(dst_dir, exist_ok=True)
|
37 |
|
38 |
# download audio
|
39 |
-
# video = pafy.new(url)
|
40 |
path = os.path.join(dst_dir, f"audio.{format}")
|
41 |
if os.path.exists(path):
|
42 |
os.remove(path)
|
@@ -99,7 +98,9 @@ with demo:
|
|
99 |
gr.Markdown("""
|
100 |
## Speech Summarization with Whisper
|
101 |
This space is intended to summarize a speech, a short one or long one, to save us sometime
|
102 |
-
(runs faster with local GPU inference).
|
|
|
|
|
103 |
|
104 |
1. Type in a youtube URL or upload an audio file
|
105 |
2. Generate transcription with Whisper (Currently English Only)
|
|
|
36 |
os.makedirs(dst_dir, exist_ok=True)
|
37 |
|
38 |
# download audio
|
|
|
39 |
path = os.path.join(dst_dir, f"audio.{format}")
|
40 |
if os.path.exists(path):
|
41 |
os.remove(path)
|
|
|
98 |
gr.Markdown("""
|
99 |
## Speech Summarization with Whisper
|
100 |
This space is intended to summarize a speech, a short one or long one, to save us sometime
|
101 |
+
(runs faster with local GPU inference). The links provided below:
|
102 |
+
[3 mins speech](https://www.youtube.com/watch?v=DuX4K4eeTz8),
|
103 |
+
[13 mins speech](https://www.youtube.com/watch?v=nepOSEGHHCQ)
|
104 |
|
105 |
1. Type in a youtube URL or upload an audio file
|
106 |
2. Generate transcription with Whisper (Currently English Only)
|