Add `api_name` to expose endpoint

#1
by merve HF staff - opened
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -67,7 +67,8 @@ def convert(file):
67
  with gr.Blocks(title=title) as iface:
68
  gr.Markdown(desc)
69
  upload_button = gr.UploadButton(
70
- "Click to Upload a File", file_types=None, file_count="single"
 
71
  )
72
  file_output = gr.File(label="Converted File")
73
  upload_button.upload(
 
67
  with gr.Blocks(title=title) as iface:
68
  gr.Markdown(desc)
69
  upload_button = gr.UploadButton(
70
+ "Click to Upload a File", file_types=None, file_count="single",
71
+ api_name="upload-file"
72
  )
73
  file_output = gr.File(label="Converted File")
74
  upload_button.upload(