ww0 commited on
Commit
7fea2c0
1 Parent(s): 33daa78

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -10
app.py CHANGED
@@ -99,7 +99,7 @@ def yt_audio_to_text(url: str,
99
  ):
100
 
101
  global audio_file_number
102
- global progress
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
- app = YouTubeChatbotApp(n_sources=3,
518
- k=5,
519
- timestamp_interval=datetime.timedelta(minutes=2),
520
- memory=5,
521
- default_youtube_url='https://www.youtube.com/watch?v=4Bdc55j80l8'
522
- )
 
523
 
524
- app.launch(debug=True)
 
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()