eranmi commited on
Commit
83e3efc
·
1 Parent(s): 271a18e

fixing working dir for HF launch

Browse files
Files changed (1) hide show
  1. ragntex.py +2 -0
ragntex.py CHANGED
@@ -6,8 +6,10 @@ from src import demo, init_telemetry
6
 
7
  # Setup OpenTelemetry
8
  _ = init_telemetry()
 
9
  # Run Gradio
10
  if os.getenv("IN_DOCKER") == "true":
 
11
  demo.launch(
12
  server_name="0.0.0.0", # nosec: intentional bind all interfaces for HuggingFace Spaces
13
  server_port=7860,
 
6
 
7
  # Setup OpenTelemetry
8
  _ = init_telemetry()
9
+
10
  # Run Gradio
11
  if os.getenv("IN_DOCKER") == "true":
12
+ os.chdir("/cache")
13
  demo.launch(
14
  server_name="0.0.0.0", # nosec: intentional bind all interfaces for HuggingFace Spaces
15
  server_port=7860,