Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -347,7 +347,7 @@ def handle_chat_submit(user_message, chat_history, api_key_input, provider_selec
|
|
347 |
|
348 |
for f_info in parsed_from_md.get("files", []):
|
349 |
# Only add if it has a path and isn't the structure block representation placeholder
|
350 |
-
if f_info.get("path") and f_info["path"] != "File Structure (original)"
|
351 |
# Check if it's a binary representation string
|
352 |
is_binary_repr = isinstance(f_info.get("content"), str) and (f_info["content"].startswith("[Binary file") or f_info["content"].startswith("[Error loading content:") or f_info["content"].startswith("[Binary or Skipped file]"))
|
353 |
# Check if a block with this filename already exists in new_cache_state and replace it
|
|
|
347 |
|
348 |
for f_info in parsed_from_md.get("files", []):
|
349 |
# Only add if it has a path and isn't the structure block representation placeholder
|
350 |
+
if f_info.get("path") and f_info["path"] != "File Structure (original)":
|
351 |
# Check if it's a binary representation string
|
352 |
is_binary_repr = isinstance(f_info.get("content"), str) and (f_info["content"].startswith("[Binary file") or f_info["content"].startswith("[Error loading content:") or f_info["content"].startswith("[Binary or Skipped file]"))
|
353 |
# Check if a block with this filename already exists in new_cache_state and replace it
|