broadfield-dev commited on
Commit
5169caf
·
verified ·
1 Parent(s): 927986b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -36,7 +36,7 @@ print("model_logic.py loaded successfully.")
36
 
37
  bbb = chr(96) * 3
38
  # Declare the global variable at the module level where it's initialized
39
- parsed_code_blocks_state_cache = []
40
  BOT_ROLE_NAME = "assistant"
41
  # Removed GROQ_API_ENDPOINT as it's now in model_logic
42
 
@@ -466,7 +466,6 @@ def handle_chat_submit(user_message, chat_history, api_key_input, provider_selec
466
  _detected_files_update = gr.Markdown(f"## Parsing Error\n`{escape_html_for_markdown(parsing_res['error_message'])}`")
467
  else:
468
  # Update the global cache with the new state returned by the parser
469
- global parsed_code_blocks_state_cache
470
  parsed_code_blocks_state_cache = parsing_res["parsed_code_blocks"]
471
 
472
  # Regenerate UI outputs from the *updated* cache
 
36
 
37
  bbb = chr(96) * 3
38
  # Declare the global variable at the module level where it's initialized
39
+
40
  BOT_ROLE_NAME = "assistant"
41
  # Removed GROQ_API_ENDPOINT as it's now in model_logic
42
 
 
466
  _detected_files_update = gr.Markdown(f"## Parsing Error\n`{escape_html_for_markdown(parsing_res['error_message'])}`")
467
  else:
468
  # Update the global cache with the new state returned by the parser
 
469
  parsed_code_blocks_state_cache = parsing_res["parsed_code_blocks"]
470
 
471
  # Regenerate UI outputs from the *updated* cache