Spaces:
Runtime error
Runtime error
File size: 650 Bytes
2df2261 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
"""
Récupère les données de recommandations
"""
from typing import List
import pandas as pd
from src.dto.Recommendation import Recommendation
recommendationFile = pd.read_csv("./assets/data/recommendations.csv")
def get_recommendations() -> List[Recommendation]:
"""
Récupère la liste de recommandations liée à l'utilisation de LLM
"""
recommandations = []
for _, row in recommendationFile.iterrows():
recommandations.append(
Recommendation(
type=row.Type, topic=row.Topic, example=row.Example,
expectedReduction=row["Expected reduction"]))
return recommandations
|