Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -99,7 +99,7 @@ def yt_audio_to_text(url: str,
|
|
99 |
):
|
100 |
|
101 |
global audio_file_number
|
102 |
-
|
103 |
progress = gr.Progress()
|
104 |
progress(0.1)
|
105 |
|
@@ -422,8 +422,6 @@ class YouTubeChatbot:
|
|
422 |
|
423 |
|
424 |
|
425 |
-
|
426 |
-
|
427 |
class YouTubeChatbotApp(YouTubeChatbot):
|
428 |
|
429 |
def __init__(self,
|
@@ -514,11 +512,12 @@ class YouTubeChatbotApp(YouTubeChatbot):
|
|
514 |
|
515 |
|
516 |
|
517 |
-
|
518 |
-
|
519 |
-
|
520 |
-
|
521 |
-
|
522 |
-
|
|
|
523 |
|
524 |
-
app.launch(
|
|
|
99 |
):
|
100 |
|
101 |
global audio_file_number
|
102 |
+
|
103 |
progress = gr.Progress()
|
104 |
progress(0.1)
|
105 |
|
|
|
422 |
|
423 |
|
424 |
|
|
|
|
|
425 |
class YouTubeChatbotApp(YouTubeChatbot):
|
426 |
|
427 |
def __init__(self,
|
|
|
512 |
|
513 |
|
514 |
|
515 |
+
if __name__ == "__main__":
|
516 |
+
app = YouTubeChatbotApp(n_sources=3,
|
517 |
+
k=5,
|
518 |
+
timestamp_interval=datetime.timedelta(minutes=2),
|
519 |
+
memory=5,
|
520 |
+
default_youtube_url='https://www.youtube.com/watch?v=4Bdc55j80l8'
|
521 |
+
)
|
522 |
|
523 |
+
app.launch()
|