Spaces:
Runtime error
Runtime error
Julian Vanecek commited on
Commit ·
86c379e
1
Parent(s): 605a57e
reverting frontend
Browse files
app.py
CHANGED
|
@@ -53,8 +53,7 @@ def process_faq(question, user_id="anonymous", model="claude-sonnet"):
|
|
| 53 |
if i % 2 == 0 or i == len(words) - 1: # Yield every 2 words or at the end
|
| 54 |
yield current_text.strip()
|
| 55 |
|
| 56 |
-
|
| 57 |
-
return full_response.replace('\\n', '\n')
|
| 58 |
|
| 59 |
except Exception as e:
|
| 60 |
return f"Error processing FAQ: {str(e)}"
|
|
|
|
| 53 |
if i % 2 == 0 or i == len(words) - 1: # Yield every 2 words or at the end
|
| 54 |
yield current_text.strip()
|
| 55 |
|
| 56 |
+
return full_response
|
|
|
|
| 57 |
|
| 58 |
except Exception as e:
|
| 59 |
return f"Error processing FAQ: {str(e)}"
|