npc0 commited on
Commit
9ea67e1
·
verified ·
1 Parent(s): 7ce2809

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -12,7 +12,7 @@ import hmac
12
  from metagpt.software_company import generate_repo, ProjectRepo
13
  import streamlit as st
14
 
15
- CONFIG_FILE_PATH = 'config/config.yaml'
16
  if not os.path.exists(CONFIG_FILE_PATH):
17
  os.mkdir(os.path.dirname(CONFIG_FILE_PATH))
18
 
@@ -59,7 +59,7 @@ def generate_zip(files):
59
  return zip_buffer
60
 
61
  text_input = st.text_area("Enter your software development requirements here:",
62
- height=2000,
63
  value="""The goal.
64
 
65
  The instructions of the task for each file example, things to do with input and output.
@@ -121,6 +121,7 @@ comments from Nick/Marc/...
121
  """)
122
 
123
  if st.button("Generate Code"):
 
124
  def download_content(url):
125
  response = requests.get(url)
126
  response.raise_for_status()
 
12
  from metagpt.software_company import generate_repo, ProjectRepo
13
  import streamlit as st
14
 
15
+ CONFIG_FILE_PATH = 'config/config2.yaml'
16
  if not os.path.exists(CONFIG_FILE_PATH):
17
  os.mkdir(os.path.dirname(CONFIG_FILE_PATH))
18
 
 
59
  return zip_buffer
60
 
61
  text_input = st.text_area("Enter your software development requirements here:",
62
+ height=2000 if 'button' not in st.session_state else None,
63
  value="""The goal.
64
 
65
  The instructions of the task for each file example, things to do with input and output.
 
121
  """)
122
 
123
  if st.button("Generate Code"):
124
+ st.session_state.button = True
125
  def download_content(url):
126
  response = requests.get(url)
127
  response.raise_for_status()