Spaces:
Sleeping
Sleeping
Refactor debug information in analyze_with_persona function to remove leading newline from output
Browse files
app.py
CHANGED
|
@@ -113,7 +113,7 @@ def analyze_with_persona(statement, persona=""):
|
|
| 113 |
prob_text += f"\nLogit probabilities outside of 1-5: {outside_probabability}"
|
| 114 |
|
| 115 |
# Show what the model actually generated including input and special tokens
|
| 116 |
-
debug_info = f"
|
| 117 |
return fig, prob_text, f"{debug_info}"
|
| 118 |
|
| 119 |
else:
|
|
|
|
| 113 |
prob_text += f"\nLogit probabilities outside of 1-5: {outside_probabability}"
|
| 114 |
|
| 115 |
# Show what the model actually generated including input and special tokens
|
| 116 |
+
debug_info = f"{tokenizer.decode(outputs.sequences[0], skip_special_tokens=False)}"
|
| 117 |
return fig, prob_text, f"{debug_info}"
|
| 118 |
|
| 119 |
else:
|