Update app.py
Browse files
app.py
CHANGED
@@ -3,11 +3,11 @@ import gradio as gr
|
|
3 |
def process_file(file):
|
4 |
if file is not None:
|
5 |
return file.name
|
6 |
-
return "No file uploaded
|
7 |
|
8 |
iface = gr.Interface(
|
9 |
fn=process_file,
|
10 |
-
inputs=gr.
|
11 |
outputs="text",
|
12 |
live=False
|
13 |
)
|
|
|
3 |
def process_file(file):
|
4 |
if file is not None:
|
5 |
return file.name
|
6 |
+
return "No file uploaded."
|
7 |
|
8 |
iface = gr.Interface(
|
9 |
fn=process_file,
|
10 |
+
inputs=gr.File(label="Upload your file"),
|
11 |
outputs="text",
|
12 |
live=False
|
13 |
)
|