Spaces:
Running
on
Zero
Running
on
Zero
fix: create temporary directory for Gradio assets
Browse files
app.py
CHANGED
|
@@ -48,6 +48,11 @@ RESIDUE_SET: ResidueSet | None = None
|
|
| 48 |
# --- Assets ---
|
| 49 |
gr.set_static_paths(paths=[Path.cwd().absolute()/"assets"])
|
| 50 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 51 |
# Logging configuration
|
| 52 |
log_file = "/tmp/instanovo_gradio_log.txt"
|
| 53 |
Path(log_file).touch()
|
|
|
|
| 48 |
# --- Assets ---
|
| 49 |
gr.set_static_paths(paths=[Path.cwd().absolute()/"assets"])
|
| 50 |
|
| 51 |
+
# Create gradio temporary directory
|
| 52 |
+
temp_dir = Path('/tmp/gradio')
|
| 53 |
+
if not temp_dir.exists():
|
| 54 |
+
temp_dir.mkdir()
|
| 55 |
+
|
| 56 |
# Logging configuration
|
| 57 |
log_file = "/tmp/instanovo_gradio_log.txt"
|
| 58 |
Path(log_file).touch()
|