jordigonzm commited on
Commit
fd2ed15
1 Parent(s): 31cc7d7

huggingface_hub.is_gradio_running

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 gr.running:
100
  load_model()
101
 
102
  chat_interface = gr.ChatInterface(
 
96
  yield "".join(outputs)
97
 
98
 
99
+ if huggingface_hub.is_gradio_running():
100
  load_model()
101
 
102
  chat_interface = gr.ChatInterface(