ivoryzhang commited on
Commit
a9d4389
·
1 Parent(s): 714ed48

fix config

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -15,9 +15,9 @@ if __name__ == "__main__":
15
  _conf.LLM_OUTPUT = os.path.join(_conf.OUTPUT_FOLDER, 'llm_output/')
16
  _conf.DECK_HISTORY = os.path.join(_conf.OUTPUT_FOLDER, 'deck_history.txt')
17
  _conf.SQLALCHEMY_DATABASE_URI = f"sqlite:///{os.path.join(_conf.OUTPUT_FOLDER, 'ivoryos.db')}"
18
- # app.config["SESSION_COOKIE_SECURE"] = False # Needed if you're testing over HTTP
19
- # app.config["SESSION_COOKIE_SAMESITE"] = "Lax" # Or "None" if embedding cross-site
20
- # app.config["SESSION_COOKIE_HTTPONLY"] = True
21
  ivoryos.run(__name__, config=_conf, blueprint_plugins=source_code, port=7860)
22
 
23
  # # USE CASE 2 - start OS using current module and enable LLM with Ollama
 
15
  _conf.LLM_OUTPUT = os.path.join(_conf.OUTPUT_FOLDER, 'llm_output/')
16
  _conf.DECK_HISTORY = os.path.join(_conf.OUTPUT_FOLDER, 'deck_history.txt')
17
  _conf.SQLALCHEMY_DATABASE_URI = f"sqlite:///{os.path.join(_conf.OUTPUT_FOLDER, 'ivoryos.db')}"
18
+ _conf.SESSION_COOKIE_SECURE = True # Needed if you're testing over HTTP
19
+ _conf.SESSION_COOKIE_SAMESITE = "Lax" # Or "None" if embedding cross-site
20
+ _conf.SESSION_COOKIE_HTTPONLY = True
21
  ivoryos.run(__name__, config=_conf, blueprint_plugins=source_code, port=7860)
22
 
23
  # # USE CASE 2 - start OS using current module and enable LLM with Ollama