m7n commited on
Commit
81b18bf
·
1 Parent(s): f458d61

define static dir

Browse files
Files changed (1) hide show
  1. app.py +4 -0
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