Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -110,7 +110,7 @@ def _ai_should_extract_painpoint(client: Mistral, title: str, selftext: str) ->
|
|
| 110 |
user_text = (
|
| 111 |
f"Title: {title}\n\n"
|
| 112 |
f"Body: {selftext or '(none)'}\n\n"
|
| 113 |
-
"Does this describe a
|
| 114 |
)
|
| 115 |
|
| 116 |
resp = client.chat.parse(
|
|
@@ -164,8 +164,6 @@ def scan_mistralai_pain_points(limit: int = 50, min_score: int = 0) -> List[Pain
|
|
| 164 |
|
| 165 |
- limit: Maximum posts to scan (<=100)
|
| 166 |
- min_score: Minimum Reddit score to include
|
| 167 |
-
|
| 168 |
-
Requires MISTRAL_API_KEY in environment.
|
| 169 |
"""
|
| 170 |
raw_posts = _fetch_subreddit_new("MistralAI", max(1, min(limit, 100)))
|
| 171 |
client = _get_mistral_client()
|
|
|
|
| 110 |
user_text = (
|
| 111 |
f"Title: {title}\n\n"
|
| 112 |
f"Body: {selftext or '(none)'}\n\n"
|
| 113 |
+
"Does this describe a problem my team, Developper relation, in charge of documentation should tackle ?"
|
| 114 |
)
|
| 115 |
|
| 116 |
resp = client.chat.parse(
|
|
|
|
| 164 |
|
| 165 |
- limit: Maximum posts to scan (<=100)
|
| 166 |
- min_score: Minimum Reddit score to include
|
|
|
|
|
|
|
| 167 |
"""
|
| 168 |
raw_posts = _fetch_subreddit_new("MistralAI", max(1, min(limit, 100)))
|
| 169 |
client = _get_mistral_client()
|