Spaces:
Sleeping
Sleeping
Allen Park
commited on
Commit
·
49a1729
1
Parent(s):
b9132f9
print the type of filepath and filepath name
Browse files
app.py
CHANGED
@@ -135,6 +135,7 @@ def upload_file(filepath):
|
|
135 |
if filepath is not None:
|
136 |
name = Path(filepath).name
|
137 |
print("FILEPATH & file name", filepath, name)
|
|
|
138 |
return [gr.UploadButton(visible=False), gr.Group(visible=True), gr.Markdown("**Uploaded file:** {name}".format(name=name))]
|
139 |
else:
|
140 |
return [gr.UploadButton(visible=True), gr.Group(visible=False), gr.Markdown("")]
|
|
|
135 |
if filepath is not None:
|
136 |
name = Path(filepath).name
|
137 |
print("FILEPATH & file name", filepath, name)
|
138 |
+
print("FILEPATH type & file name type", type(filepath), type(name))
|
139 |
return [gr.UploadButton(visible=False), gr.Group(visible=True), gr.Markdown("**Uploaded file:** {name}".format(name=name))]
|
140 |
else:
|
141 |
return [gr.UploadButton(visible=True), gr.Group(visible=False), gr.Markdown("")]
|