Jeffgold commited on
Commit
823a43f
·
1 Parent(s): d2ceaee

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -50,7 +50,7 @@ def create_master_playlist(output_paths):
50
  for path in output_paths:
51
  f.write(f"#EXT-X-STREAM-INF:BANDWIDTH={1000*1000},RESOLUTION={path.stem.split('_')[-1]}\n")
52
  f.write(f"{path.name}\n")
53
- return master_playlist_path
54
 
55
  def convert_video(video_file, quality, aspect_ratio, video_url):
56
  input_path = get_input_path(video_file, video_url)
@@ -115,5 +115,6 @@ interface = gr.Interface(
115
  allow_flagging=False,
116
  server_name="0.0.0.0",
117
  server_port=7860,
 
118
  )
119
- interface.launch()
 
50
  for path in output_paths:
51
  f.write(f"#EXT-X-STREAM-INF:BANDWIDTH={1000*1000},RESOLUTION={path.stem.split('_')[-1]}\n")
52
  f.write(f"{path.name}\n")
53
+ return [{'name': path.stem, 'url': f"{path.name}"} for path in output_paths]
54
 
55
  def convert_video(video_file, quality, aspect_ratio, video_url):
56
  input_path = get_input_path(video_file, video_url)
 
115
  allow_flagging=False,
116
  server_name="0.0.0.0",
117
  server_port=7860,
118
+ format_fn=format_output # Add this line
119
  )
120
+ interface.launch()