Akjava commited on
Commit
ff4180a
Β·
verified Β·
1 Parent(s): 9af0dbc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -8,6 +8,7 @@ import gradio as gr
8
 
9
  text_generator = None
10
  def init():
 
11
  huggingface_token = os.getenv("HUGGINGFACE_TOKEN")
12
  if not huggingface_token:
13
  pass
 
8
 
9
  text_generator = None
10
  def init():
11
+ global text_generator
12
  huggingface_token = os.getenv("HUGGINGFACE_TOKEN")
13
  if not huggingface_token:
14
  pass