Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|