jordigonzm commited on
Commit
470317d
1 Parent(s): fd2ed15

if os.environ.get("GRADIO_APP") == "True":

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -96,7 +96,7 @@ def generate(
96
  yield "".join(outputs)
97
 
98
 
99
- if huggingface_hub.is_gradio_running():
100
  load_model()
101
 
102
  chat_interface = gr.ChatInterface(
 
96
  yield "".join(outputs)
97
 
98
 
99
+ if os.environ.get("GRADIO_APP") == "True":
100
  load_model()
101
 
102
  chat_interface = gr.ChatInterface(