Skip to content

Commit

Permalink
make docker adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
Boburmirzo committed Oct 30, 2023
1 parent 2dc4f36 commit 8ea3e27
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion api.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from llm_app import chunk_texts, extract_texts
load_dotenv()

dropbox_folder_path = os.environ.get("DROPBOX_LOCAL_FOLDER_PATH", "")
dropbox_folder_path = os.environ.get("DROPBOX_LOCAL_FOLDER_PATH", "/usr/local/documents")


def run(host, port):
Expand Down
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
load_dotenv()

if __name__ == "__main__":
host = os.environ.get("HOST", "0.0.0.0")
host = os.environ.get("HOST", "api")
port = int(os.environ.get("PORT", 8080))
app_api = importlib.import_module("api")
app_api.run(host=host, port=port)
2 changes: 1 addition & 1 deletion ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

# Load environment variables
load_dotenv()
api_host = os.environ.get("HOST", "0.0.0.0")
api_host = os.environ.get("HOST", "api")
api_port = int(os.environ.get("PORT", 8080))


Expand Down

0 comments on commit 8ea3e27

Please sign in to comment.