saim1309 commited on
Commit
c8fe250
·
verified ·
1 Parent(s): db358eb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -2
app.py CHANGED
@@ -301,6 +301,10 @@ Questions? Contact info@getscenestudios.com"""
301
  detected_topic = 'mentorship'
302
  elif any(word in question_lower for word in ['price', 'cost', 'how much']):
303
  detected_topic = 'pricing'
 
 
 
 
304
 
305
  # Priority 2: Fallback to session context if current question is ambiguous
306
  if not detected_topic and current_topic:
@@ -309,7 +313,9 @@ Questions? Contact info@getscenestudios.com"""
309
  'beginner': 'beginner',
310
  'audition_help': 'audition',
311
  'mentorship': 'mentorship',
312
- 'pricing': 'pricing'
 
 
313
  }
314
  detected_topic = topic_map.get(current_topic)
315
 
@@ -324,6 +330,11 @@ Questions? Contact info@getscenestudios.com"""
324
  context_snippet = "Working Actor Mentorship is a 6-month program ($3,000) with structured feedback and industry access."
325
  elif detected_topic == 'pricing':
326
  context_snippet = "Get Scene Studios pricing varies by program. Most workshops cap at 12-14 actors for personalized feedback."
 
 
 
 
 
327
  else:
328
  context_snippet = "Get Scene Studios (founded by Jesse Malinowski) offers training for TV/film actors at all levels."
329
 
@@ -343,7 +354,8 @@ USER PREFERENCE KNOWN: {user_preference.upper()}
343
  # Brevity & Cognitive Load: Direct instructions based on user intent
344
  detail_instruction = "Answer the user's question briefly (2-3 sentences max, ≤150 words total)."
345
  if wants_details:
346
- detail_instruction = "Provide a detailed and thorough explanation for the user's request, but keep it structured and readable."
 
347
 
348
  prompt = f"""{PERSONA_INSTRUCTION}
349
 
 
301
  detected_topic = 'mentorship'
302
  elif any(word in question_lower for word in ['price', 'cost', 'how much']):
303
  detected_topic = 'pricing'
304
+ elif any(word in question_lower for word in ['class', 'workshop', 'training', 'learn']):
305
+ detected_topic = 'classes'
306
+ elif any(word in question_lower for word in ['membership', 'gsp', 'plus']):
307
+ detected_topic = 'membership'
308
 
309
  # Priority 2: Fallback to session context if current question is ambiguous
310
  if not detected_topic and current_topic:
 
313
  'beginner': 'beginner',
314
  'audition_help': 'audition',
315
  'mentorship': 'mentorship',
316
+ 'pricing': 'pricing',
317
+ 'classes': 'classes',
318
+ 'membership': 'membership'
319
  }
320
  detected_topic = topic_map.get(current_topic)
321
 
 
330
  context_snippet = "Working Actor Mentorship is a 6-month program ($3,000) with structured feedback and industry access."
331
  elif detected_topic == 'pricing':
332
  context_snippet = "Get Scene Studios pricing varies by program. Most workshops cap at 12-14 actors for personalized feedback."
333
+ elif detected_topic == 'classes':
334
+ link = "https://www.getscenestudios.com/online" if user_preference == 'online' else "https://www.getscenestudios.com/instudio"
335
+ context_snippet = f"Get Scene Studios offers world-class {user_preference or ''} acting workshops. Our sessions focus on camera technique and industry readiness. Full details at {link}."
336
+ elif detected_topic == 'membership':
337
+ context_snippet = "Get Scene Plus (GSP) is our membership program that provides ongoing access to industry pros and audition insights."
338
  else:
339
  context_snippet = "Get Scene Studios (founded by Jesse Malinowski) offers training for TV/film actors at all levels."
340
 
 
354
  # Brevity & Cognitive Load: Direct instructions based on user intent
355
  detail_instruction = "Answer the user's question briefly (2-3 sentences max, ≤150 words total)."
356
  if wants_details:
357
+ target = f" regarding {detected_topic or 'the current recommendations'}"
358
+ detail_instruction = f"Provide a detailed and thorough explanation for the user's request{target}. Focus on being helpful and providing deep value as a mentor."
359
 
360
  prompt = f"""{PERSONA_INSTRUCTION}
361