Spaces:
Build error
Build error
Add `api_name` to expose endpoint
Browse files
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(
|