Jofthomas commited on
Commit
a8d51c1
·
verified ·
1 Parent(s): ab03104

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -143,7 +143,7 @@ def _ai_should_extract_painpoint(client: Mistral, title: str, selftext: str) ->
143
 
144
  parsed: PainPointDecision = resp.choices[0].message.parsed # type: ignore[attr-defined]
145
  print(f"AI classify: {parsed.decision}")
146
- return parsed.decision == "YES" or True
147
 
148
 
149
  def _ai_generate_title_summary(client: Mistral, title: str, selftext: str) -> PainPointGenerated:
 
143
 
144
  parsed: PainPointDecision = resp.choices[0].message.parsed # type: ignore[attr-defined]
145
  print(f"AI classify: {parsed.decision}")
146
+ return parsed.decision == "YES"
147
 
148
 
149
  def _ai_generate_title_summary(client: Mistral, title: str, selftext: str) -> PainPointGenerated: