acecalisto3 commited on
Commit
7741f15
1 Parent(s): fbe0586

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -19,17 +19,17 @@ from agent import (
19
  UNDERSTAND_TEST_RESULTS,
20
  COMPRESS_HISTORY,
21
  LOG_PROMPT,
22
- LOG_RESPONSE
23
  )
24
-
25
  import importlib
26
  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/CodeMixt"
31
  PROJECT_ROOT = "projects"
32
  AGENT_DIRECTORY = "agents"
 
33
 
34
  initialize_global_variables()
35
 
@@ -381,4 +381,4 @@ def init_app(name):
381
  chat_button.click(run_chat, inputs=[chat_input, chat_history], outputs=[chat_history, terminal_output])
382
  terminal_button.click(run_terminal_command, inputs=[terminal_input, terminal_output], outputs=[terminal_output])
383
 
384
- iface.launch()
 
19
  UNDERSTAND_TEST_RESULTS,
20
  COMPRESS_HISTORY,
21
  LOG_PROMPT,
22
+ LOG_RESPONSE,
23
  )
 
24
  import importlib
25
  import sys
26
 
27
  def initialize_global_variables():
28
+ global HUGGING_FACE_REPO_URL, PROJECT_ROOT, AGENT_DIRECTORY, GRADIO_SERVER_PORT
29
  HUGGING_FACE_REPO_URL = "https://huggingface.co/spaces/acecalisto3/CodeMixt"
30
  PROJECT_ROOT = "projects"
31
  AGENT_DIRECTORY = "agents"
32
+ GRADIO_SERVER_PORT = 7860 # Choose a consistently unused port
33
 
34
  initialize_global_variables()
35
 
 
381
  chat_button.click(run_chat, inputs=[chat_input, chat_history], outputs=[chat_history, terminal_output])
382
  terminal_button.click(run_terminal_command, inputs=[terminal_input, terminal_output], outputs=[terminal_output])
383
 
384
+ iface.launch(server_port=GRADIO_SERVER_PORT)