Spaces:
Paused
Paused
Commit
·
9a7d4db
1
Parent(s):
e3fc741
updated
Browse files
app.py
CHANGED
|
@@ -8,6 +8,8 @@ os.environ["HUGGINGFACE_HUB_CACHE"] = "/tmp/huggingface/hub"
|
|
| 8 |
|
| 9 |
# Force Flask instance path to a writable temporary folder
|
| 10 |
safe_instance_path = "/tmp/flask_instance"
|
|
|
|
|
|
|
| 11 |
os.makedirs(safe_instance_path, exist_ok=True)
|
| 12 |
|
| 13 |
from flask import Flask, render_template, redirect, url_for, flash, request
|
|
|
|
| 8 |
|
| 9 |
# Force Flask instance path to a writable temporary folder
|
| 10 |
safe_instance_path = "/tmp/flask_instance"
|
| 11 |
+
|
| 12 |
+
# Create the safe instance path after imports
|
| 13 |
os.makedirs(safe_instance_path, exist_ok=True)
|
| 14 |
|
| 15 |
from flask import Flask, render_template, redirect, url_for, flash, request
|