Spaces:
Runtime error
Runtime error
Commit
·
3c7f166
1
Parent(s):
d200fbc
new commit
Browse files
app.py
CHANGED
@@ -180,7 +180,7 @@ async def process_message_route(message: MessageRequest):
|
|
180 |
bot_response = process_prompt(user_message) # Process the user's message
|
181 |
bot_response = bot_response.split("<|fim_suffix|>")[0].strip()
|
182 |
# Remove everything after <|fim_suffix|> and trim
|
183 |
-
|
184 |
|
185 |
|
186 |
# Return the bot's response as JSON
|
|
|
180 |
bot_response = process_prompt(user_message) # Process the user's message
|
181 |
bot_response = bot_response.split("<|fim_suffix|>")[0].strip()
|
182 |
# Remove everything after <|fim_suffix|> and trim
|
183 |
+
bot_response = bot_response.split("\n")[0].strip()
|
184 |
|
185 |
|
186 |
# Return the bot's response as JSON
|