Spaces:
Runtime error
Runtime error
Update app.py
Browse files18 unmodified lines1920212222232424252627292829303132333435345 unmodified lines38138238338438418 unmodified lines UNDERSTAND_TEST_RESULTS, COMPRESS_HISTORY, LOG_PROMPT, LOG_RESPONSE LOG_RESPONSE,)
import importlibimport sys
def initialize_global_variables(): global HUGGING_FACE_REPO_URL, PROJECT_ROOT, AGENT_DIRECTORY global HUGGING_FACE_REPO_URL, PROJECT_ROOT, AGENT_DIRECTORY, GRADIO_SERVER_PORT HUGGING_FACE_REPO_URL = "https://huggingface.co/spaces/acecalisto3/CodeMixt" PROJECT_ROOT = "projects" AGENT_DIRECTORY = "agents" GRADIO_SERVER_PORT = 7860 # Choose a consistently unused port
initialize_global_variables()
345 unmodified lines chat_button.click(run_chat, inputs=[chat_input, chat_history], outputs=[chat_history, terminal_output]) terminal_button.click(run_terminal_command, inputs=[terminal_input, terminal_output], outputs=[terminal_output])
iface.launch()iface.launch(server_port=GRADIO_SERVER_PORT)app.py+4-4