Spaces:
Sleeping
Sleeping
jordigonzm
commited on
Commit
•
fd2ed15
1
Parent(s):
31cc7d7
huggingface_hub.is_gradio_running
Browse files
app.py
CHANGED
@@ -96,7 +96,7 @@ def generate(
|
|
96 |
yield "".join(outputs)
|
97 |
|
98 |
|
99 |
-
if
|
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(
|