Old-Fat-Boy commited on
Commit
29b726a
·
1 Parent(s): 413b360

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -40,7 +40,7 @@ def train_model(youtube_link, progress=gr.Progress()):
40
  return "Model successfully trained for Datlon & Michael."
41
 
42
 
43
- with gr.Blocks(title = "Old Fat Boy") as demo:
44
  with gr.Tab("Train"):
45
  with gr.Row():
46
  tb_youtubelink = gr.Textbox(label="Youtube Link" )
@@ -145,7 +145,6 @@ with gr.Blocks(title = "Old Fat Boy") as demo:
145
  )
146
 
147
 
148
- if __name__ == "__main__":
149
- demo.queue(max_size=10)
150
  demo.launch(share=False, debug=True, favicon_path='oldfatboy.png')
151
 
 
40
  return "Model successfully trained for Datlon & Michael."
41
 
42
 
43
+ with gr.Blocks(title = "Old Fat Boy").queue() as demo:
44
  with gr.Tab("Train"):
45
  with gr.Row():
46
  tb_youtubelink = gr.Textbox(label="Youtube Link" )
 
145
  )
146
 
147
 
148
+ if __name__ == "__main__":
 
149
  demo.launch(share=False, debug=True, favicon_path='oldfatboy.png')
150