Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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"
|
| 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:
|