phoebe777777 commited on
Commit
5bcd4ac
·
verified ·
1 Parent(s): 0b62ba7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -23,11 +23,11 @@ from inference_track import load_model as load_track_model, run as run_track
23
 
24
  # ===== 清理缓存目录 =====
25
  print("===== 清理缓存 =====")
26
- cache_path = os.path.expanduser("~/.cache/huggingface/gradio")
27
  if os.path.exists(cache_path):
28
  try:
29
  shutil.rmtree(cache_path)
30
- print("✅ Deleted ~/.cache/huggingface/gradio")
31
  except:
32
  pass
33
 
@@ -1470,7 +1470,7 @@ with gr.Blocks(title="Microscopy Analysis Suite", theme=gr.themes.Soft()) as dem
1470
  if __name__ == "__main__":
1471
  demo.queue().launch(
1472
  server_name="0.0.0.0",
1473
- server_port=7861,
1474
  share=True,
1475
- show_error=True
1476
  )
 
23
 
24
  # ===== 清理缓存目录 =====
25
  print("===== 清理缓存 =====")
26
+ cache_path = os.path.expanduser("~/.cache/")
27
  if os.path.exists(cache_path):
28
  try:
29
  shutil.rmtree(cache_path)
30
+ print("✅ Deleted ~/.cache/")
31
  except:
32
  pass
33
 
 
1470
  if __name__ == "__main__":
1471
  demo.queue().launch(
1472
  server_name="0.0.0.0",
1473
+ server_port=7860,
1474
  share=True,
1475
+ show_error=True,
1476
  )