acecalisto3 commited on
Commit
9e66234
·
verified ·
1 Parent(s): 3e5ad45

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -334,7 +334,7 @@ def deploy_app_to_hf_spaces(project_name, token, generated_code):
334
  def launch_chatapp(project_path):
335
  # ... (previous code)
336
 
337
- if st.button("Build & Deploy"):
338
  token = st.text_input("Enter your Hugging Face token:", type="password")
339
  generated_code, project_path = generate_app(st.session_state["user_idea"], project_name)
340
  st.write(f"Generated code: {generated_code}")
@@ -344,6 +344,6 @@ def deploy_app_to_hf_spaces(project_name, token, generated_code):
344
  else:
345
  st.error("Please enter a Hugging Face token to deploy the app.")
346
 
347
- if __name__ == "__main__":
348
  db.create_all() # Create the database tables if they don't exist
349
  main()
 
334
  def launch_chatapp(project_path):
335
  # ... (previous code)
336
 
337
+ if st.button("Build & Deploy"):
338
  token = st.text_input("Enter your Hugging Face token:", type="password")
339
  generated_code, project_path = generate_app(st.session_state["user_idea"], project_name)
340
  st.write(f"Generated code: {generated_code}")
 
344
  else:
345
  st.error("Please enter a Hugging Face token to deploy the app.")
346
 
347
+ if __name__ == "__main__":
348
  db.create_all() # Create the database tables if they don't exist
349
  main()