gokaygokay
commited on
Commit
•
952cbe5
1
Parent(s):
b976407
Update app.py
Browse files
app.py
CHANGED
@@ -376,6 +376,14 @@ You are allowed to make up film and branding names, and do them like 80's, 90's
|
|
376 |
elif model == "Mistral-Nemo":
|
377 |
output = output.rstrip("<|im_end|></s>")
|
378 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
379 |
self.save_prompt(output)
|
380 |
return output
|
381 |
|
|
|
376 |
elif model == "Mistral-Nemo":
|
377 |
output = output.rstrip("<|im_end|></s>")
|
378 |
|
379 |
+
# Clean up the output
|
380 |
+
if ": " in output:
|
381 |
+
output = output.split(": ", 1)[1].strip()
|
382 |
+
elif output.lower().startswith("here"):
|
383 |
+
sentences = output.split(". ")
|
384 |
+
if len(sentences) > 1:
|
385 |
+
output = ". ".join(sentences[1:]).strip()
|
386 |
+
|
387 |
self.save_prompt(output)
|
388 |
return output
|
389 |
|