acecalisto3 commited on
Commit
0caeb15
·
verified ·
1 Parent(s): f9018bb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -13
app.py CHANGED
@@ -27,7 +27,7 @@ import sys
27
 
28
  def initialize_global_variables():
29
  global HUGGING_FACE_REPO_URL, PROJECT_ROOT, AGENT_DIRECTORY
30
- HUGGING_FACE_REPO_URL = "https://huggingface.co/spaces/acecalisto3/Mistri"
31
  PROJECT_ROOT = "projects"
32
  AGENT_DIRECTORY = "agents"
33
 
@@ -370,22 +370,22 @@ def init_app(name):
370
  app_process.app_name = name
371
  return f"App '{name}' initialized."
372
 
373
- init_app_button.click(init_app, inputs=[app_name_input], outputs=[components_display])
374
 
375
- # Step 2: Add Component
376
- add_component_button.click(app_process.add_component, inputs=[component_type], outputs=[components_display])
377
 
378
- # Step 3: Set Property
379
- set_property_button.click(app_process.set_component_property, inputs=[component_id, property_name, property_value], outputs=[components_display])
380
 
381
- # Step 4: Generate Code
382
- generate_code_button.click(app_process.generate_python_code, outputs=[generated_code])
383
 
384
- # Step 5: Deploy
385
- deploy_button.click(app_process.deploy_to_huggingface, outputs=[deployment_status])
386
 
387
- # Existing chat and terminal functionality
388
- chat_button.click(run_chat, inputs=[chat_input, chat_history], outputs=[chat_history, terminal_output])
389
- terminal_button.click(run_terminal_command, inputs=[terminal_input, terminal_output], outputs=[terminal_output])
390
 
391
  iface.launch()
 
27
 
28
  def initialize_global_variables():
29
  global HUGGING_FACE_REPO_URL, PROJECT_ROOT, AGENT_DIRECTORY
30
+ HUGGING_FACE_REPO_URL = "https://huggingface.co/spaces/acecalisto3/CodeMixt"
31
  PROJECT_ROOT = "projects"
32
  AGENT_DIRECTORY = "agents"
33
 
 
370
  app_process.app_name = name
371
  return f"App '{name}' initialized."
372
 
373
+ init_app_button.click(init_app, inputs=[app_name_input], outputs=[components_display])
374
 
375
+ # Step 2: Add Component
376
+ add_component_button.click(app_process.add_component, inputs=[component_type], outputs=[components_display])
377
 
378
+ # Step 3: Set Property
379
+ set_property_button.click(app_process.set_component_property, inputs=[component_id, property_name, property_value], outputs=[components_display])
380
 
381
+ # Step 4: Generate Code
382
+ generate_code_button.click(app_process.generate_python_code, outputs=[generated_code])
383
 
384
+ # Step 5: Deploy
385
+ deploy_button.click(app_process.deploy_to_huggingface, outputs=[deployment_status])
386
 
387
+ # Existing chat and terminal functionality
388
+ chat_button.click(run_chat, inputs=[chat_input, chat_history], outputs=[chat_history, terminal_output])
389
+ terminal_button.click(run_terminal_command, inputs=[terminal_input, terminal_output], outputs=[terminal_output])
390
 
391
  iface.launch()