Spaces:
Build error
Build error
Add `api_name` to expose endpoint (#1)
Browse files- Add `api_name` to expose endpoint (af4dcd25c0163889391ceb1f7a1ff937d8868e54)
Co-authored-by: Merve Noyan <[email protected]>
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(
|