npc0 commited on
Commit
07992c9
·
verified ·
1 Parent(s): 73046f3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -6,6 +6,9 @@ import hmac
6
  from metagpt.software_company import generate_repo, ProjectRepo
7
  import streamlit as st
8
 
 
 
 
9
  CONFIG_FILE_PATH = '~/.metagpt/config2.yaml'
10
  if not os.path.exists(CONFIG_FILE_PATH):
11
  with open(CONFIG_FILE_PATH, 'w') as f:
 
6
  from metagpt.software_company import generate_repo, ProjectRepo
7
  import streamlit as st
8
 
9
+ if not os.path.exists('~/.metagpt'):
10
+ os.system('metagpt --init-config')
11
+
12
  CONFIG_FILE_PATH = '~/.metagpt/config2.yaml'
13
  if not os.path.exists(CONFIG_FILE_PATH):
14
  with open(CONFIG_FILE_PATH, 'w') as f: