Tonydelanight commited on
Commit
c07dfee
·
verified ·
1 Parent(s): 0af9786

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -19
app.py CHANGED
@@ -15,28 +15,15 @@ def name_generator(mom: str, dad: str) -> list:
15
  """
16
  Generate baby names based on parental preferences.
17
 
18
- :param mom: The mother's preferences for the name (e.g., "classic", "modern").
19
- :type mom: str
20
- :param dad: The father's preferences for the name (e.g., "hero names", "short names").
21
- :type dad: str
22
- :return: A list of baby names that match the given preferences
23
- :rtype: list
24
- """
25
- prompt = f"""
26
- You are an AI that suggests baby names based on parental preferences.
27
- The mother prefers: {mom}.
28
- The father prefers: {dad}.
29
 
30
- Suggest as many baby names as possible.
31
- Just return the names, separated by commas, nothing else.
32
  """
 
33
 
34
- # Ton code pour générer la réponse via 'model'
35
- response = model.generate(prompt)
36
- baby_names = response.strip().split(",")
37
- baby_names = [name.strip() for name in baby_names if name.strip()]
38
-
39
- return baby_names if baby_names else ["No names generated. Try different preferences."]
40
 
41
 
42
 
 
15
  """
16
  Generate baby names based on parental preferences.
17
 
18
+ Args:
19
+ mom (str): The mother's preferences for the name.
20
+ dad (str): The father's preferences for the name.
 
 
 
 
 
 
 
 
21
 
22
+ Returns:
23
+ list: A list of baby names.
24
  """
25
+ return []
26
 
 
 
 
 
 
 
27
 
28
 
29