Sathvik-kota commited on
Commit
3cb7085
·
verified ·
1 Parent(s): 9f1c9c4

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. src/api_gateway/app.py +2 -1
src/api_gateway/app.py CHANGED
@@ -9,7 +9,8 @@ DOC_URL = "http://localhost:9001"
9
  EMBED_URL = "http://localhost:9002"
10
  SEARCH_URL = "http://localhost:9003"
11
  EXPLAIN_URL = "http://localhost:9004"
12
- DATA_FOLDER = "/app/docs"
 
13
 
14
  class SearchQuery(BaseModel):
15
  query: str
 
9
  EMBED_URL = "http://localhost:9002"
10
  SEARCH_URL = "http://localhost:9003"
11
  EXPLAIN_URL = "http://localhost:9004"
12
+ import os
13
+ DATA_FOLDER = os.environ.get("DATA_FOLDER", "/app/docs")
14
 
15
  class SearchQuery(BaseModel):
16
  query: str