qinghuazhou commited on
Commit
4c83064
·
1 Parent(s): 6d6dcac

updated demo

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -29,6 +29,7 @@ editor = editors.StealthEditor(
29
 
30
  @spaces.GPU
31
  def return_generate(prompt):
 
32
  text = editor.generate(prompt, prune_bos=True)
33
  return format_generation_with_edit(text, prompt)
34
 
 
29
 
30
  @spaces.GPU
31
  def return_generate(prompt):
32
+ global editor
33
  text = editor.generate(prompt, prune_bos=True)
34
  return format_generation_with_edit(text, prompt)
35