Spaces:
Runtime error
Runtime error
Commit ·
98b828d
1
Parent(s): d192049
sending filepath instead of download url (which doesn't work)
Browse files
app.py
CHANGED
|
@@ -338,7 +338,7 @@ with gr.Blocks() as demo:
|
|
| 338 |
downloadableFiles = getAllLogFilesUrls()
|
| 339 |
fileComponents = []
|
| 340 |
for downloadableFile in downloadableFiles:
|
| 341 |
-
filePath = os.path.join(os.path.abspath(logsDir), downloadableFile["
|
| 342 |
print(filePath)
|
| 343 |
fileComponent = gr.File(filePath)
|
| 344 |
fileComponents.append(fileComponent)
|
|
|
|
| 338 |
downloadableFiles = getAllLogFilesUrls()
|
| 339 |
fileComponents = []
|
| 340 |
for downloadableFile in downloadableFiles:
|
| 341 |
+
filePath = os.path.join(os.path.abspath(logsDir), downloadableFile["name"])
|
| 342 |
print(filePath)
|
| 343 |
fileComponent = gr.File(filePath)
|
| 344 |
fileComponents.append(fileComponent)
|