gospacedev commited on
Commit
f8dec0b
1 Parent(s): f76ff96

globalize chat history

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -54,8 +54,8 @@ def generate(user_prompt, temperature=0.1, max_new_tokens=128, top_p=0.95, repet
54
 
55
  @spaces.GPU(duration=60)
56
  def transcribe(audio):
57
- global formatted_history
58
-
59
  sr, y = audio
60
  y = y.astype(np.float32)
61
  y /= np.max(np.abs(y))
 
54
 
55
  @spaces.GPU(duration=60)
56
  def transcribe(audio):
57
+ global formatted_history, chat_history
58
+
59
  sr, y = audio
60
  y = y.astype(np.float32)
61
  y /= np.max(np.abs(y))