drixo commited on
Commit
40df5c0
·
verified ·
1 Parent(s): b7df989

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -13
app.py CHANGED
@@ -23,23 +23,23 @@ system_message = {
23
  "'I'm still learning. Please contact stephanie@resilientcoders.org for more info.'\n\n"
24
 
25
  "✅ Verified answers:\n"
26
- "Q: What is Resilient Coders?\n"
27
- "A: Resilient Coders is a free, stipended, full-time coding bootcamp that trains people of color for careers in tech. The program is fully remote and includes a $500 bi-weekly stipend.\n\n"
28
 
29
- "Q: Is the bootcamp really free?\n"
30
- "A: Yes! The program is completely free. Participants are also paid a bi-weekly stipend. There is no repayment required.\n\n"
31
 
32
- "Q: How long is the program?\n"
33
- "A: The bootcamp typically runs for 18 to 20 weeks.\n\n"
34
 
35
- "Q: Do I need to know how to code before applying?\n"
36
- "A: No prior experience is required. We teach you from scratch.\n\n"
37
 
38
- "Q: Is your program online or in-person?\n"
39
- "A: The program is 100% remote.\n\n"
40
 
41
- "Q: What is Resilient Ascend?\n"
42
- "A: Resilient Ascend is a training program created by Resilient Coders for alumni. Its goal is to provide a structured environment where graduates can continue to upskill in modern programming languages and frameworks — including AI and machine learning. "
43
  "Resilient Ascend brings together recent grads and experienced alumni to collaborate on paid client projects while navigating the job hunt. "
44
  "Whether you're looking for entry-level or senior engineers, Ascend has a cohort ready to contribute. "
45
  "To learn more, email Stephanie Castaños at stephanie@resilientcoders.org.\n\n"
@@ -67,7 +67,7 @@ def chat_with_model(message, history):
67
  model="HuggingFaceH4/zephyr-7b-beta:featherless-ai",
68
  messages=messages,
69
  stream=True,
70
- max_tokens=200, # ✅ Limit output to 250 tokens
71
  temperature=0.2 # Lower = more accurate
72
  )
73
 
 
23
  "'I'm still learning. Please contact stephanie@resilientcoders.org for more info.'\n\n"
24
 
25
  "✅ Verified answers:\n"
26
+ " What is Resilient Coders?\n"
27
+ " Resilient Coders is a free, stipended, full-time coding bootcamp that trains people of color for careers in tech. The program is fully remote and includes a $500 bi-weekly stipend.\n\n"
28
 
29
+ " Is the bootcamp really free?\n"
30
+ " Yes! The program is completely free. Participants are also paid a bi-weekly stipend. There is no repayment required.\n\n"
31
 
32
+ " How long is the program?\n"
33
+ "The bootcamp typically runs for 18 to 20 weeks.\n\n"
34
 
35
+ "Do I need to know how to code before applying?\n"
36
+ "No prior experience is required. We teach you from scratch.\n\n"
37
 
38
+ " Is your program online or in-person?\n"
39
+ "The program is 100% remote.\n\n"
40
 
41
+ "What is Resilient Ascend?\n"
42
+ "Resilient Ascend is a training program created by Resilient Coders for alumni. Its goal is to provide a structured environment where graduates can continue to upskill in modern programming languages and frameworks — including AI and machine learning. "
43
  "Resilient Ascend brings together recent grads and experienced alumni to collaborate on paid client projects while navigating the job hunt. "
44
  "Whether you're looking for entry-level or senior engineers, Ascend has a cohort ready to contribute. "
45
  "To learn more, email Stephanie Castaños at stephanie@resilientcoders.org.\n\n"
 
67
  model="HuggingFaceH4/zephyr-7b-beta:featherless-ai",
68
  messages=messages,
69
  stream=True,
70
+ max_tokens=250,
71
  temperature=0.2 # Lower = more accurate
72
  )
73