AMabInsta commited on
Commit
69bd30f
·
1 Parent(s): 85d497c

fix: create temporary directory for Gradio assets

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