ewaltuch commited on
Commit
131b126
·
verified ·
1 Parent(s): 500d057

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -10,6 +10,7 @@ import platform
10
  import subprocess
11
  import shlex
12
  from typing import Tuple, Optional
 
13
 
14
  from Gradio_UI import GradioUI
15
 
@@ -115,7 +116,7 @@ def jedi_mind_trick(question: str) -> str:
115
  # Keywords to trigger the mind trick
116
  # Uses regex word boundaries (\b) for 'droid' to avoid matching 'android',
117
  # but allows exact matching for character names.
118
- droid_keywords = re.compile(r'\b(droid|droids)\b|c3po|r2d2')
119
 
120
  if droid_keywords.search(lower_question):
121
  # The trick works!
 
10
  import subprocess
11
  import shlex
12
  from typing import Tuple, Optional
13
+ import re
14
 
15
  from Gradio_UI import GradioUI
16
 
 
116
  # Keywords to trigger the mind trick
117
  # Uses regex word boundaries (\b) for 'droid' to avoid matching 'android',
118
  # but allows exact matching for character names.
119
+ droid_keywords = re.compile(r'\b(droid|droids)\b|c3po|r2d2|bb8')
120
 
121
  if droid_keywords.search(lower_question):
122
  # The trick works!