gholapeajinkya commited on
Commit
5c6cb0c
·
verified ·
1 Parent(s): 97c2538

UI updated

Browse files
Files changed (1) hide show
  1. app.py +14 -13
app.py CHANGED
@@ -321,19 +321,7 @@ if __name__ == "__main__":
321
  st.session_state.is_processing = False
322
 
323
  with st.sidebar:
324
- # File uploader for MP4 video
325
- st.write("Video Input Options")
326
- video_file = st.file_uploader("Upload a MP4 video file", type=[
327
- "mp4"], disabled=st.session_state.is_processing, on_change=set_processing, args=(True,))
328
- st.write("OR")
329
- video_url = st.text_input(
330
- "Enter the URL of a MP4 video (Youtube or other)",
331
- disabled=st.session_state.is_processing,
332
- on_change=set_processing, # Will pass value below
333
- args=(True,)
334
- )
335
- st.divider()
336
-
337
  st.write("Language Options")
338
  input_languages = [
339
  ("Japanese", "ja"), ("English", "en"), ("Chinese", "zh"),
@@ -359,6 +347,19 @@ if __name__ == "__main__":
359
  )
360
  output_language_value = dict(output_languages)[output_language]
361
  st.divider()
 
 
 
 
 
 
 
 
 
 
 
 
 
362
  st.write("Transcription Options")
363
  whisper_models = ["tiny", "base", "small",
364
  "medium", "large", "large-v2", "large-v3", "turbo"]
 
321
  st.session_state.is_processing = False
322
 
323
  with st.sidebar:
324
+
 
 
 
 
 
 
 
 
 
 
 
 
325
  st.write("Language Options")
326
  input_languages = [
327
  ("Japanese", "ja"), ("English", "en"), ("Chinese", "zh"),
 
347
  )
348
  output_language_value = dict(output_languages)[output_language]
349
  st.divider()
350
+ # File uploader for MP4 video
351
+ st.write("Video Input Options")
352
+ video_file = st.file_uploader("Upload a MP4 video file", type=[
353
+ "mp4"], disabled=st.session_state.is_processing, on_change=set_processing, args=(True,))
354
+ st.write("OR")
355
+ video_url = st.text_input(
356
+ "Enter the URL of a MP4 video (Youtube or other)",
357
+ disabled=st.session_state.is_processing,
358
+ on_change=set_processing, # Will pass value below
359
+ args=(True,)
360
+ )
361
+ st.divider()
362
+
363
  st.write("Transcription Options")
364
  whisper_models = ["tiny", "base", "small",
365
  "medium", "large", "large-v2", "large-v3", "turbo"]