ivoryzhang commited on
Commit
145b8e5
·
1 Parent(s): a33f839

fix config

Browse files
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -4,7 +4,15 @@ from demo_code_plugin.plugin import source_code
4
  if __name__ == "__main__":
5
  import ivoryos
6
  from ivoryos.config import DemoConfig
7
- ivoryos.run(__name__, config=DemoConfig(), blueprint_plugins=source_code, port=7860)
 
 
 
 
 
 
 
 
8
 
9
  # # USE CASE 2 - start OS using current module and enable LLM with Ollama
10
  # ivoryos.run(__name__, model="llama3.1", llm_server='localhost')
 
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(OUTPUT_FOLDER, 'config_csv/')
10
+ _conf.SCRIPT_FOLDER = os.path.join(OUTPUT_FOLDER, 'scripts/')
11
+ _conf.DATA_FOLDER = os.path.join(OUTPUT_FOLDER, 'results/')
12
+ _conf.DUMMY_DECK = os.path.join(OUTPUT_FOLDER, 'pseudo_deck/')
13
+ _conf.LLM_OUTPUT = os.path.join(OUTPUT_FOLDER, 'llm_output/')
14
+ _conf.DECK_HISTORY = os.path.join(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')