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

fix config

Browse files
Files changed (1) hide show
  1. app.py +10 -10
app.py CHANGED
@@ -3,16 +3,16 @@ 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__, config=_conf, 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.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')