Spaces:
Running
on
Zero
Running
on
Zero
cheger pder
Browse files
app.py
CHANGED
@@ -37,7 +37,6 @@ def predict(request: gr.Request,text_input):
|
|
37 |
</html>
|
38 |
""")
|
39 |
# file_path = static_dir / file_name
|
40 |
-
os.chmod(file_path, 0o644)
|
41 |
iframe = f'<iframe src="/file={file_name}" width="100%" height="500px"></iframe>'
|
42 |
link = f'<a href="/file={file_name}" target="_blank">{file_name}</a>'
|
43 |
print("Serving file at:", f"/file={file_path}")
|
|
|
37 |
</html>
|
38 |
""")
|
39 |
# file_path = static_dir / file_name
|
|
|
40 |
iframe = f'<iframe src="/file={file_name}" width="100%" height="500px"></iframe>'
|
41 |
link = f'<a href="/file={file_name}" target="_blank">{file_name}</a>'
|
42 |
print("Serving file at:", f"/file={file_path}")
|