Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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:
|