Spaces:
Running
Running
Update app2.py
Browse files
app2.py
CHANGED
@@ -1009,6 +1009,9 @@ def generate_qr_codes(data: List[Dict], combined: bool = True) -> List[str]:
|
|
1009 |
|
1010 |
logger.info(f"Generated {len(paths)} QR codes.")
|
1011 |
return paths
|
|
|
|
|
|
|
1012 |
|
1013 |
# --- Chatbot Logic ---
|
1014 |
def respond_to_chat(
|
|
|
1009 |
|
1010 |
logger.info(f"Generated {len(paths)} QR codes.")
|
1011 |
return paths
|
1012 |
+
except Exception as e:
|
1013 |
+
logger.error(f"Error generating QR codes: {e}")
|
1014 |
+
return []
|
1015 |
|
1016 |
# --- Chatbot Logic ---
|
1017 |
def respond_to_chat(
|