atascioglu commited on
Commit
9824893
·
verified ·
1 Parent(s): b5482e3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -15
app.py CHANGED
@@ -51,21 +51,6 @@ CASE_PREFIX = "CaseStudyContent__"
51
  def _is_placeholder_name(name: str) -> bool:
52
  return "placeholder" in (name or "").lower()
53
 
54
- # =====================================================
55
- # PER-MODE GENERATION CONTROLS (creativity/speed) ****** CUSTOMIZE ******
56
- # =====================================================
57
-
58
- DEFAULT_GEN_CONFIG = {"temperature": 0.2, "top_p": 0.8, "max_tokens": 350}
59
-
60
- GEN_CONFIG = {m: DEFAULT_GEN_CONFIG.copy() for m in STUDENT_MODES}
61
- GEN_CONFIG.update({
62
- "Course Detailer": {"temperature": 0.35, "top_p": 0.9, "max_tokens": 380},
63
- "Reviewer": {"temperature": 0.15, "top_p": 0.8, "max_tokens": 420},
64
- "Socratic Reviewer": {"temperature": 0.10, "top_p": 0.8, "max_tokens": 320},
65
- "Stakeholder": {"temperature": 0.45, "top_p": 0.95, "max_tokens": 420},
66
- })
67
-
68
-
69
  # =====================================================
70
  # OPTIONAL WEB SEARCH (OFF by default) ****** CUSTOMIZE ******
71
  # =====================================================
@@ -173,6 +158,20 @@ Matching how the persona described in the source would be in a realistic busines
173
 
174
  STUDENT_MODES = list(MODE_INSTRUCTIONS.keys())
175
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
176
  # =====================================================
177
  # MEMORY + LOGGING
178
  # =====================================================
 
51
  def _is_placeholder_name(name: str) -> bool:
52
  return "placeholder" in (name or "").lower()
53
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
54
  # =====================================================
55
  # OPTIONAL WEB SEARCH (OFF by default) ****** CUSTOMIZE ******
56
  # =====================================================
 
158
 
159
  STUDENT_MODES = list(MODE_INSTRUCTIONS.keys())
160
 
161
+ # =====================================================
162
+ # PER-MODE GENERATION CONTROLS (creativity/speed) ****** CUSTOMIZE ******
163
+ # =====================================================
164
+
165
+ DEFAULT_GEN_CONFIG = {"temperature": 0.2, "top_p": 0.8, "max_tokens": 350}
166
+
167
+ GEN_CONFIG = {m: DEFAULT_GEN_CONFIG.copy() for m in STUDENT_MODES}
168
+ GEN_CONFIG.update({
169
+ "Course Detailer": {"temperature": 0.35, "top_p": 0.9, "max_tokens": 380},
170
+ "Reviewer": {"temperature": 0.15, "top_p": 0.8, "max_tokens": 420},
171
+ "Socratic Reviewer": {"temperature": 0.10, "top_p": 0.8, "max_tokens": 320},
172
+ "Stakeholder": {"temperature": 0.45, "top_p": 0.95, "max_tokens": 420},
173
+ })
174
+
175
  # =====================================================
176
  # MEMORY + LOGGING
177
  # =====================================================