mrfakename commited on
Commit
7dd4d3b
1 Parent(s): a7bbb2a
Files changed (1) hide show
  1. app.py +8 -5
app.py CHANGED
@@ -53,7 +53,9 @@ def subtitle(input):
53
  return
54
 
55
  with gr.Blocks() as demo:
56
- gr.Markdown("""
 
 
57
  # AutoSubs
58
 
59
  Automatically add on-screen subtitles to your videos.
@@ -64,9 +66,10 @@ The maximum length of video is 15 minutes. This service probably won't work well
64
 
65
  Powered by OAI Whisper & MoviePy!
66
  """)
67
- status = gr.Markdown("**Status updates will appear here.**")
68
- vid_inp = gr.Video(interactive=True, label="Upload or record video", max_length=900)
69
- go_btn = gr.Button("Transcribe!", variant="primary")
70
- vid_out = gr.Video(interactive=False, label="Result")
 
71
  go_btn.click(subtitle, inputs=[vid_inp], outputs=[status, vid_out])
72
  demo.queue(api_open=False).launch(show_api=False)
 
53
  return
54
 
55
  with gr.Blocks() as demo:
56
+ with gr.Rows():
57
+ with gr.Column(scale=3):
58
+ gr.Markdown("""
59
  # AutoSubs
60
 
61
  Automatically add on-screen subtitles to your videos.
 
66
 
67
  Powered by OAI Whisper & MoviePy!
68
  """)
69
+ vid_inp = gr.Video(interactive=True, label="Upload or record video", max_length=900)
70
+ go_btn = gr.Button("Transcribe!", variant="primary")
71
+ with gr.Column(scale=1):
72
+ status = gr.Markdown("**Status updates will appear here.**")
73
+ vid_out = gr.Video(interactive=False, label="Result")
74
  go_btn.click(subtitle, inputs=[vid_inp], outputs=[status, vid_out])
75
  demo.queue(api_open=False).launch(show_api=False)