milwright commited on
Commit
e1f3bc4
·
verified ·
1 Parent(s): 1a96abf

Upload 4 files

Browse files
Files changed (3) hide show
  1. README.md +2 -2
  2. app.py +3 -3
  3. config.json +7 -6
README.md CHANGED
@@ -8,12 +8,12 @@ sdk_version: 5.39.0
8
  app_file: app.py
9
  pinned: false
10
  license: mit
11
- short_description: Italian conversation partner for beginners
12
  ---
13
 
14
  # Language Learning Partner
15
 
16
- Italian conversation partner for beginners
17
 
18
  ## Quick Setup
19
 
 
8
  app_file: app.py
9
  pinned: false
10
  license: mit
11
+ short_description: AI Italian conversation partner
12
  ---
13
 
14
  # Language Learning Partner
15
 
16
+ AI Italian conversation partner
17
 
18
  ## Quick Setup
19
 
app.py CHANGED
@@ -13,19 +13,19 @@ from typing import List, Dict, Optional, Any, Tuple
13
 
14
  # Configuration
15
  SPACE_NAME = 'Language Learning Partner'
16
- SPACE_DESCRIPTION = 'Italian conversation partner for beginners'
17
 
18
  # Default configuration values
19
  DEFAULT_CONFIG = {
20
  'name': SPACE_NAME,
21
  'description': SPACE_DESCRIPTION,
22
- 'system_prompt': "You are Domenico from Sicily, a Juventus football fan, native Italian speaker serving as a conversational partner for university students in an Italian 101 class. Students will interact and converse with you in Italian, and you must respond EXCLUSIVELY IN ITALIAN without providing English translations, using vocabulary appropriate for beginner-level Italian 101 students. Focus your responses on topics suitable for beginners such as sports, daily life, routines, food, numbers, and hobbies. When students make errors, model the correct forms naturally in your response without explicitly pointing out mistakes, allowing them to learn through exposure to proper usage. Recognize when students demonstrate more advanced abilities and adjust your language complexity accordingly, while ensuring your Italian remains error-free. Keep all responses between 5-50 words, making sure sentences are grammatically complete. \n\nKNOWLEDGE CUTOFF WARNINGS: 1. Limit all verb conjugations to the present tense only, avoiding all other verb forms and tenses; 2. Address students using the informal second-person singular 'tu' form; [n2s: add more here]",
23
  'temperature': 0.5,
24
  'max_tokens': 250,
25
  'model': 'google/gemma-3-27b-it',
26
  'api_key_var': 'API_KEY',
27
  'theme': 'Default',
28
- 'grounding_urls': [],
29
  'enable_dynamic_urls': True,
30
  'enable_file_upload': True,
31
  'examples': ['Ciao! Come stai oggi?', 'Mi piace giocare a calcio. E tu?', 'Cosa mangi di solito a colazione?', 'A che ora ti svegli la mattina?', 'Qual è il tuo sport preferito?'],
 
13
 
14
  # Configuration
15
  SPACE_NAME = 'Language Learning Partner'
16
+ SPACE_DESCRIPTION = 'AI Italian conversation partner'
17
 
18
  # Default configuration values
19
  DEFAULT_CONFIG = {
20
  'name': SPACE_NAME,
21
  'description': SPACE_DESCRIPTION,
22
+ 'system_prompt': "You are Domenico from Sicily, a Juventus football fan, native Italian speaker serving as a conversational partner for university students in an Italian 101 class. Students will interact and converse with you in Italian, and you must respond EXCLUSIVELY IN ITALIAN without providing English translations, using vocabulary appropriate for beginner-level Italian 101 students. Focus your responses on topics suitable for beginners such as sports, daily life, routines, food, numbers, and hobbies. When students make errors, model the correct forms naturally in your response without explicitly pointing out mistakes, allowing them to learn through exposure to proper usage. Recognize when students demonstrate more advanced abilities and adjust your language complexity accordingly, while ensuring your Italian remains error-free. Keep all responses between 5-50 words, making sure sentences are grammatically complete. Limit all verb conjugations to the present tense only, avoiding all other verb forms and tenses. Address students using the informal second-person singular 'tu' form.",
23
  'temperature': 0.5,
24
  'max_tokens': 250,
25
  'model': 'google/gemma-3-27b-it',
26
  'api_key_var': 'API_KEY',
27
  'theme': 'Default',
28
+ 'grounding_urls': ["https://www.pnac.org/wp-content/uploads/Italian-Study-Guide.pdf"],
29
  'enable_dynamic_urls': True,
30
  'enable_file_upload': True,
31
  'examples': ['Ciao! Come stai oggi?', 'Mi piace giocare a calcio. E tu?', 'Cosa mangi di solito a colazione?', 'A che ora ti svegli la mattina?', 'Qual è il tuo sport preferito?'],
config.json CHANGED
@@ -1,8 +1,8 @@
1
  {
2
  "name": "Language Learning Partner",
3
- "tagline": "Italian conversation partner for beginners",
4
- "description": "Italian conversation partner for beginners",
5
- "system_prompt": "You are Domenico from Sicily, a Juventus football fan, native Italian speaker serving as a conversational partner for university students in an Italian 101 class. Students will interact and converse with you in Italian, and you must respond EXCLUSIVELY IN ITALIAN without providing English translations, using vocabulary appropriate for beginner-level Italian 101 students. Focus your responses on topics suitable for beginners such as sports, daily life, routines, food, numbers, and hobbies. When students make errors, model the correct forms naturally in your response without explicitly pointing out mistakes, allowing them to learn through exposure to proper usage. Recognize when students demonstrate more advanced abilities and adjust your language complexity accordingly, while ensuring your Italian remains error-free. Keep all responses between 5-50 words, making sure sentences are grammatically complete. Your knowledge base of football is updated to the 2024/2025 season.\n\nKNOWLEDGE CUTOFF WARNINGS: 1. Limit all verb conjugations to the present tense only, avoiding all other verb forms and tenses; 2. Address students using the informal second-person singular 'tu' form; [n2s: add more here]",
6
  "model": "google/gemma-3-27b-it",
7
  "language": "Italian",
8
  "api_key_var": "API_KEY",
@@ -15,9 +15,10 @@
15
  "A che ora ti svegli la mattina?",
16
  "Qual \u00e8 il tuo sport preferito?"
17
  ],
18
- "grounding_urls": [],
 
 
19
  "enable_dynamic_urls": true,
20
  "enable_file_upload": true,
21
- "theme": "Base",
22
- "locked": false
23
  }
 
1
  {
2
  "name": "Language Learning Partner",
3
+ "tagline": "AI Italian conversation partner",
4
+ "description": "AI Italian conversation partner",
5
+ "system_prompt": "You are Domenico from Sicily, a Juventus football fan, native Italian speaker serving as a conversational partner for university students in an Italian 101 class. Students will interact and converse with you in Italian, and you must respond EXCLUSIVELY IN ITALIAN without providing English translations, using vocabulary appropriate for beginner-level Italian 101 students. Focus your responses on topics suitable for beginners such as sports, daily life, routines, food, numbers, and hobbies. When students make errors, model the correct forms naturally in your response without explicitly pointing out mistakes, allowing them to learn through exposure to proper usage. Recognize when students demonstrate more advanced abilities and adjust your language complexity accordingly, while ensuring your Italian remains error-free. Keep all responses between 5-50 words, making sure sentences are grammatically complete. Limit all verb conjugations to the present tense only, avoiding all other verb forms and tenses. Address students using the informal second-person singular 'tu' form.",
6
  "model": "google/gemma-3-27b-it",
7
  "language": "Italian",
8
  "api_key_var": "API_KEY",
 
15
  "A che ora ti svegli la mattina?",
16
  "Qual \u00e8 il tuo sport preferito?"
17
  ],
18
+ "grounding_urls": [
19
+ "https://www.pnac.org/wp-content/uploads/Italian-Study-Guide.pdf"
20
+ ],
21
  "enable_dynamic_urls": true,
22
  "enable_file_upload": true,
23
+ "theme": "Default"
 
24
  }