Update app.py
Browse files
app.py
CHANGED
@@ -10,6 +10,7 @@ import gradio as gr
|
|
10 |
import ast
|
11 |
from IPython.display import Audio, display
|
12 |
import requests
|
|
|
13 |
|
14 |
model = whisper.load_model("base")
|
15 |
|
@@ -122,7 +123,7 @@ with gr.Blocks() as demo:
|
|
122 |
|
123 |
# input_url = gr.Textbox(label="Type-in the URL or File Location of the Video", value='https://www.youtube.com/watch?v=ug5e4JfC3oo')
|
124 |
|
125 |
-
input_url = gr.Textbox(label="Enter Video URL", visible=True)
|
126 |
video_file = gr.File(label="Upload Video", visible=False)
|
127 |
|
128 |
# input_url = gr.Textbox(label="Type-in the URL or File Location of the Video", value='sample.mp4')
|
|
|
10 |
import ast
|
11 |
from IPython.display import Audio, display
|
12 |
import requests
|
13 |
+
nltk.download('punkt_tab')
|
14 |
|
15 |
model = whisper.load_model("base")
|
16 |
|
|
|
123 |
|
124 |
# input_url = gr.Textbox(label="Type-in the URL or File Location of the Video", value='https://www.youtube.com/watch?v=ug5e4JfC3oo')
|
125 |
|
126 |
+
input_url = gr.Textbox(label="Enter Video URL", visible=True, value='sample.mp4')
|
127 |
video_file = gr.File(label="Upload Video", visible=False)
|
128 |
|
129 |
# input_url = gr.Textbox(label="Type-in the URL or File Location of the Video", value='sample.mp4')
|