Spaces:
Running
Running
hanhainebula
commited on
Commit
•
dff4bae
1
Parent(s):
d269f41
remove restart_space code
Browse files
app.py
CHANGED
@@ -4,7 +4,6 @@ import logging
|
|
4 |
import pandas as pd
|
5 |
import gradio as gr
|
6 |
import multiprocessing
|
7 |
-
from apscheduler.schedulers.background import BackgroundScheduler
|
8 |
|
9 |
from src.backend import pull_search_results
|
10 |
from src.envs import (
|
@@ -87,9 +86,6 @@ if __name__ == "__main__":
|
|
87 |
),
|
88 |
)
|
89 |
process.start()
|
90 |
-
|
91 |
-
scheduler = BackgroundScheduler()
|
92 |
-
scheduler.add_job(restart_space, "interval", seconds=1800)
|
93 |
-
scheduler.start()
|
94 |
demo.queue(default_concurrency_limit=40)
|
95 |
demo.launch()
|
|
|
4 |
import pandas as pd
|
5 |
import gradio as gr
|
6 |
import multiprocessing
|
|
|
7 |
|
8 |
from src.backend import pull_search_results
|
9 |
from src.envs import (
|
|
|
86 |
),
|
87 |
)
|
88 |
process.start()
|
89 |
+
|
|
|
|
|
|
|
90 |
demo.queue(default_concurrency_limit=40)
|
91 |
demo.launch()
|