adrin merve HF staff commited on
Commit
dfc41e0
1 Parent(s): aff8b1b

Add `api_name` to expose endpoint (#1)

Browse files

- Add `api_name` to expose endpoint (af4dcd25c0163889391ceb1f7a1ff937d8868e54)


Co-authored-by: Merve Noyan <[email protected]>

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(