ivoryzhang commited on
Commit
a70a796
·
1 Parent(s): 898d504

fix config

Browse files
Files changed (1) hide show
  1. app.py +12 -10
app.py CHANGED
@@ -3,16 +3,18 @@ from demo_code_plugin.plugin import source_code
3
  import os
4
  if __name__ == "__main__":
5
  import ivoryos
6
- # from ivoryos.config import DemoConfig
7
- # _conf = DemoConfig()
8
- # _conf.OUTPUT_FOLDER = os.path.join(os.path.abspath(os.curdir), '/tmp/ivoryos_data')
9
- # _conf.CSV_FOLDER = os.path.join(_conf.OUTPUT_FOLDER, 'config_csv/')
10
- # _conf.SCRIPT_FOLDER = os.path.join(_conf.OUTPUT_FOLDER, 'scripts/')
11
- # _conf.DATA_FOLDER = os.path.join(_conf.OUTPUT_FOLDER, 'results/')
12
- # _conf.DUMMY_DECK = os.path.join(_conf.OUTPUT_FOLDER, 'pseudo_deck/')
13
- # _conf.LLM_OUTPUT = os.path.join(_conf.OUTPUT_FOLDER, 'llm_output/')
14
- # _conf.DECK_HISTORY = os.path.join(_conf.OUTPUT_FOLDER, 'deck_history.txt')
15
- ivoryos.run(__name__, blueprint_plugins=source_code, port=7860)
 
 
16
 
17
  # # USE CASE 2 - start OS using current module and enable LLM with Ollama
18
  # ivoryos.run(__name__, model="llama3.1", llm_server='localhost')
 
3
  import os
4
  if __name__ == "__main__":
5
  import ivoryos
6
+ from ivoryos.config import DemoConfig
7
+ _conf = DemoConfig()
8
+ _conf.SQ
9
+ _conf.OUTPUT_FOLDER = os.path.join(os.path.abspath(os.curdir), '/tmp/ivoryos_data')
10
+ _conf.CSV_FOLDER = os.path.join(_conf.OUTPUT_FOLDER, 'config_csv/')
11
+ _conf.SCRIPT_FOLDER = os.path.join(_conf.OUTPUT_FOLDER, 'scripts/')
12
+ _conf.DATA_FOLDER = os.path.join(_conf.OUTPUT_FOLDER, 'results/')
13
+ _conf.DUMMY_DECK = os.path.join(_conf.OUTPUT_FOLDER, 'pseudo_deck/')
14
+ _conf.LLM_OUTPUT = os.path.join(_conf.OUTPUT_FOLDER, 'llm_output/')
15
+ _conf.DECK_HISTORY = os.path.join(_conf.OUTPUT_FOLDER, 'deck_history.txt')
16
+ SQLALCHEMY_DATABASE_URI = f"sqlite:///{os.path.join(_conf.OUTPUT_FOLDER, 'ivoryos.db')}"
17
+ ivoryos.run(__name__, config=_conf, blueprint_plugins=source_code, port=7860)
18
 
19
  # # USE CASE 2 - start OS using current module and enable LLM with Ollama
20
  # ivoryos.run(__name__, model="llama3.1", llm_server='localhost')