Ericwang commited on
Commit
7191918
·
1 Parent(s): 1decc5e

added description for transcript

Browse files
Files changed (2) hide show
  1. .DS_Store +0 -0
  2. app.py +11 -3
.DS_Store CHANGED
Binary files a/.DS_Store and b/.DS_Store differ
 
app.py CHANGED
@@ -150,8 +150,16 @@ end_time_wt = gr.Textbox(label="End time (in seconds or HH:MM:SS). Leave blank t
150
  output_file_wt = gr.File(label="Download trimmed file")
151
  output_transcript_wt = gr.File(label="Download trimmed transcript")
152
  interface_wt = gr.Interface(fn=trim_video_wt, inputs=[input_file_wt, input_transcript_wt, output_format_wt, start_time_wt, end_time_wt],
153
- outputs=[output_file_wt, output_transcript_wt], title="Video Trimmer with transcript", allow_flagging="never",
154
- description="Trim a video file to a specific time interval with transcript format converted. Please wait for the file to upload before clicking the 'Submit' button.")
 
 
 
 
 
 
 
 
155
 
156
  # gr components for video trimmer
157
  input_file = gr.File(label="Select video file")
@@ -172,5 +180,5 @@ interface_c = gr.Interface(fn=convert_video, inputs=[input_file_c, output_format
172
 
173
 
174
 
175
- demo = gr.TabbedInterface([interface_wt, interface, interface_c], ["Video Trimmer with transcript","Video Trimmer", "Video Converter"])
176
  demo.launch(server_name="0.0.0.0", server_port=7860)
 
150
  output_file_wt = gr.File(label="Download trimmed file")
151
  output_transcript_wt = gr.File(label="Download trimmed transcript")
152
  interface_wt = gr.Interface(fn=trim_video_wt, inputs=[input_file_wt, input_transcript_wt, output_format_wt, start_time_wt, end_time_wt],
153
+ outputs=[output_file_wt, output_transcript_wt], title="Video Trimmer with transcript converted", allow_flagging="never",
154
+ description="Trim a video file to a specific time interval with transcript format converted. Please wait for the file to upload before clicking the 'Submit' button. \n\
155
+ This transcript should be .xlsx files from Happyscribe (an external transcription service). The columns in the file are as follows: \n\
156
+ `#`: an integer index over utterances. \n\
157
+ `Timecode`: a string in the format `HH:MM:SS:ss - HH:MM:SS:ss` representing the start and end time of the utterance. \n\
158
+ `Duration`: a string in the format `HH:MM:SS:ss` representing the duration of the utterance. \n\
159
+ `Speaker`: a string representing the speaker of the utterance. \n\
160
+ `Dialogue`: a string representing the text of the utterance. \n\
161
+ `Annotations`: a string that may be blank, representing any annotations for the utterance. \n\
162
+ `Error Type`: a string that may be blank, representing any errors in the transcription of the utterance. ")
163
 
164
  # gr components for video trimmer
165
  input_file = gr.File(label="Select video file")
 
180
 
181
 
182
 
183
+ demo = gr.TabbedInterface([interface_wt, interface, interface_c], ["Video Trimmer with transcript converted","Video Trimmer", "Video Converter"])
184
  demo.launch(server_name="0.0.0.0", server_port=7860)