Spaces:
Sleeping
Sleeping
Update appaaa.py
Browse files
appaaa.py
CHANGED
@@ -178,9 +178,9 @@ async def handle_chat(query: dict):
|
|
178 |
|
179 |
def generate_ai_response(message, errors=None):
|
180 |
if "error" in message.lower() and errors:
|
181 |
-
return f"Your translation failed with: {', '.join(errors[:3])}"
|
182 |
elif "support" in message.lower():
|
183 |
-
return f"Supported frameworks: {', '.join(FRAMEWORKS.keys())}"
|
184 |
return "Ask about translation errors or framework support"
|
185 |
|
186 |
# Translation endpoint to handle file uploads and translations
|
|
|
178 |
|
179 |
def generate_ai_response(message, errors=None):
|
180 |
if "error" in message.lower() and errors:
|
181 |
+
return """f"Your translation failed with: {', '.join(errors[:3])}"""
|
182 |
elif "support" in message.lower():
|
183 |
+
return """f"Supported frameworks: {', '.join(FRAMEWORKS.keys())}"""
|
184 |
return "Ask about translation errors or framework support"
|
185 |
|
186 |
# Translation endpoint to handle file uploads and translations
|