nsschw commited on
Commit
c87cd16
·
1 Parent(s): 53d4de2

Refactor debug information in analyze_with_persona function to remove leading newline from output

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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"\n{tokenizer.decode(outputs.sequences[0], skip_special_tokens=False)}"
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: