Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -254,7 +254,6 @@ interface = gr.Interface(
|
|
254 |
# concurrency_limit=None
|
255 |
)
|
256 |
interface.queue(default_concurrency_limit=None)
|
257 |
-
# interface.launch(show_error=True)
|
258 |
|
259 |
|
260 |
def preload_gt():
|
@@ -281,3 +280,4 @@ scheduler = BackgroundScheduler()
|
|
281 |
scheduler.add_job(restart_space, "interval", hours=1) # Restart every 1h
|
282 |
logging.info("Scheduler initialized to restart space every 1 hour.")
|
283 |
scheduler.start()
|
|
|
|
254 |
# concurrency_limit=None
|
255 |
)
|
256 |
interface.queue(default_concurrency_limit=None)
|
|
|
257 |
|
258 |
|
259 |
def preload_gt():
|
|
|
280 |
scheduler.add_job(restart_space, "interval", hours=1) # Restart every 1h
|
281 |
logging.info("Scheduler initialized to restart space every 1 hour.")
|
282 |
scheduler.start()
|
283 |
+
interface.launch(show_error=True)
|