csukuangfj commited on
Commit
e6413db
·
1 Parent(s): 15cb938

support url

Browse files
Files changed (1) hide show
  1. app.py +1 -5
app.py CHANGED
@@ -139,7 +139,7 @@ def process_url(
139
  add_punctuation: str,
140
  url: str,
141
  ):
142
- MyPrint(f"Processing URL: {url}")
143
  with tempfile.NamedTemporaryFile() as f:
144
  urllib.request.urlretrieve(url, f.name)
145
 
@@ -278,10 +278,6 @@ with demo:
278
  label="Generated subtitles", show_label=True
279
  )
280
 
281
- output_srt_file_audio_url = gr.File(
282
- label="Generated subtitles", show_label=True
283
- )
284
-
285
  output_info_audio_url = gr.HTML(label="Info")
286
  output_textbox_audio_url = gr.Textbox(
287
  label="Recognized speech from audio URL (srt format)"
 
139
  add_punctuation: str,
140
  url: str,
141
  ):
142
+ logging.info(f"Processing URL: {url}")
143
  with tempfile.NamedTemporaryFile() as f:
144
  urllib.request.urlretrieve(url, f.name)
145
 
 
278
  label="Generated subtitles", show_label=True
279
  )
280
 
 
 
 
 
281
  output_info_audio_url = gr.HTML(label="Info")
282
  output_textbox_audio_url = gr.Textbox(
283
  label="Recognized speech from audio URL (srt format)"