Spaces:
Sleeping
Sleeping
define static dir
Browse files
app.py
CHANGED
@@ -71,7 +71,11 @@ pyalex.config.email = "[email protected]"
|
|
71 |
|
72 |
print(f"Imports completed: {time.strftime('%Y-%m-%d %H:%M:%S')}")
|
73 |
|
|
|
|
|
74 |
# Instead of FastAPI setup, just use Gradio's file serving
|
|
|
|
|
75 |
gr.set_static_paths(paths=["static/"])
|
76 |
|
77 |
# Resource configuration
|
|
|
71 |
|
72 |
print(f"Imports completed: {time.strftime('%Y-%m-%d %H:%M:%S')}")
|
73 |
|
74 |
+
|
75 |
+
|
76 |
# Instead of FastAPI setup, just use Gradio's file serving
|
77 |
+
static_dir = Path("static")
|
78 |
+
static_dir.mkdir(exist_ok=True) # Create the static directory if it doesn't exist
|
79 |
gr.set_static_paths(paths=["static/"])
|
80 |
|
81 |
# Resource configuration
|