Spaces:
Runtime error
Runtime error
Commit ·
d192049
1
Parent(s): e4161c3
filepath update (to absolute)
Browse files
app.py
CHANGED
|
@@ -338,7 +338,8 @@ with gr.Blocks() as demo:
|
|
| 338 |
downloadableFiles = getAllLogFilesUrls()
|
| 339 |
fileComponents = []
|
| 340 |
for downloadableFile in downloadableFiles:
|
| 341 |
-
filePath = os.path.join(logsDir, downloadableFile["url"])
|
|
|
|
| 342 |
fileComponent = gr.File(filePath)
|
| 343 |
fileComponents.append(fileComponent)
|
| 344 |
|
|
|
|
| 338 |
downloadableFiles = getAllLogFilesUrls()
|
| 339 |
fileComponents = []
|
| 340 |
for downloadableFile in downloadableFiles:
|
| 341 |
+
filePath = os.path.join(os.path.abspath(logsDir), downloadableFile["url"])
|
| 342 |
+
print(filePath)
|
| 343 |
fileComponent = gr.File(filePath)
|
| 344 |
fileComponents.append(fileComponent)
|
| 345 |
|