acecalisto3 commited on
Commit
27dd824
·
verified ·
1 Parent(s): 47aeb6f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -5
app.py CHANGED
@@ -332,16 +332,12 @@ def deploy_app_to_hf_spaces(project_name, token, generated_code):
332
  os.remove(temp_file)
333
 
334
  def launch_chatapp(project_path):
335
- if st.button("Launch ChatApp"):
336
  st.write("Launching ChatApp...")
337
  os.chdir(project_path)
338
  subprocess.run(["python", "app.py"])
339
  st.write("ChatApp launched successfully!")
340
 
341
- if __name__ == "__main__":
342
- db.create_all() # Create the database tables if they don't exist
343
- main()
344
-
345
  def generate_app(user_idea, project_name):
346
  # Extract key information from the user idea
347
  summary = nlp_pipeline(user_idea, max_length=50, min_length=10)[0]["summary_text"]
 
332
  os.remove(temp_file)
333
 
334
  def launch_chatapp(project_path):
335
+ if st.button("Launch ChatApp"):
336
  st.write("Launching ChatApp...")
337
  os.chdir(project_path)
338
  subprocess.run(["python", "app.py"])
339
  st.write("ChatApp launched successfully!")
340
 
 
 
 
 
341
  def generate_app(user_idea, project_name):
342
  # Extract key information from the user idea
343
  summary = nlp_pipeline(user_idea, max_length=50, min_length=10)[0]["summary_text"]