Jeffgold commited on
Commit
8179262
·
1 Parent(s): 3866bdc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -107,15 +107,17 @@ def format_output(output):
107
  html += f'<p><a href="{file["url"]}" target="_blank">{file["name"]}</a></p>'
108
  return html
109
 
 
 
110
  interface = gr.Interface(
111
  fn=convert_video,
112
  inputs=[video_file, quality, aspect_ratio, video_url],
113
- outputs=gr.outputs.HTML(label="Download Links"),
 
114
  title="Video Converter",
115
  description="A simple video converter app",
116
  allow_flagging=False,
117
  server_name="0.0.0.0",
118
  server_port=7860,
119
- format_fn=format_output # Add this line
120
  )
121
  interface.launch()
 
107
  html += f'<p><a href="{file["url"]}" target="_blank">{file["name"]}</a></p>'
108
  return html
109
 
110
+ outputs = gr.outputs.HTML(label="Download Links", type="html")
111
+
112
  interface = gr.Interface(
113
  fn=convert_video,
114
  inputs=[video_file, quality, aspect_ratio, video_url],
115
+ outputs=outputs,
116
+ interpretation=format_output,
117
  title="Video Converter",
118
  description="A simple video converter app",
119
  allow_flagging=False,
120
  server_name="0.0.0.0",
121
  server_port=7860,
 
122
  )
123
  interface.launch()