TimeRobber commited on
Commit
64e1a6c
1 Parent(s): 35032fa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -24,6 +24,7 @@ model = get_mobilenet(width_mult=NAME_TO_WIDTH(MODEL_NAME), pretrained_name=MODE
24
  model.to(device)
25
  model.eval()
26
 
 
27
  cached_audio_class = "c"
28
  template = None
29
  prompt = None
@@ -70,6 +71,7 @@ def format_classname(classname):
70
  def formatted_message(audio_class, human_input):
71
  global cached_audio_class
72
  global session_token
 
73
  formatted_classname = format_classname(audio_class)
74
  if cached_audio_class != formatted_classname:
75
 
 
24
  model.to(device)
25
  model.eval()
26
 
27
+ chatgpt_chain = None
28
  cached_audio_class = "c"
29
  template = None
30
  prompt = None
 
71
  def formatted_message(audio_class, human_input):
72
  global cached_audio_class
73
  global session_token
74
+ global chatgpt_chain
75
  formatted_classname = format_classname(audio_class)
76
  if cached_audio_class != formatted_classname:
77