Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -17,10 +17,6 @@ if not os.path.exists(save_dir):
|
|
17 |
transcription_model = "openai/whisper-base"
|
18 |
llm_model = "gmurro/bart-large-finetuned-filtered-spotify-podcast-summ"
|
19 |
|
20 |
-
!pip install -U -q pytube transformers
|
21 |
-
|
22 |
-
!pip -q install gradio==3.45.0
|
23 |
-
|
24 |
import pandas as pd
|
25 |
import numpy as np
|
26 |
import pytube
|
@@ -119,7 +115,6 @@ def get_summary(audio_text):
|
|
119 |
return grouped_summary
|
120 |
|
121 |
# check text requires map-reduce stategy
|
122 |
-
|
123 |
map_text = audio_text
|
124 |
long_summary = ""
|
125 |
|
@@ -212,4 +207,4 @@ with gr.Blocks() as demo:
|
|
212 |
sum_btn.click(fn=get_video, inputs=url, outputs=video, api_name="get_youtube_video", queue=False)
|
213 |
|
214 |
demo.queue()
|
215 |
-
demo.launch()
|
|
|
17 |
transcription_model = "openai/whisper-base"
|
18 |
llm_model = "gmurro/bart-large-finetuned-filtered-spotify-podcast-summ"
|
19 |
|
|
|
|
|
|
|
|
|
20 |
import pandas as pd
|
21 |
import numpy as np
|
22 |
import pytube
|
|
|
115 |
return grouped_summary
|
116 |
|
117 |
# check text requires map-reduce stategy
|
|
|
118 |
map_text = audio_text
|
119 |
long_summary = ""
|
120 |
|
|
|
207 |
sum_btn.click(fn=get_video, inputs=url, outputs=video, api_name="get_youtube_video", queue=False)
|
208 |
|
209 |
demo.queue()
|
210 |
+
demo.launch(share=True)
|