Spaces:
Runtime error
Runtime error
acecalisto3
commited on
Update app.py
Browse files
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/
|
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 |
-
|
374 |
|
375 |
-
|
376 |
-
|
377 |
|
378 |
-
|
379 |
-
|
380 |
|
381 |
-
|
382 |
-
|
383 |
|
384 |
-
|
385 |
-
|
386 |
|
387 |
-
|
388 |
-
|
389 |
-
|
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()
|