Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -231,12 +231,6 @@ interface = gr.Interface(
|
|
| 231 |
scheduler = BackgroundScheduler()
|
| 232 |
scheduler.add_job(restart_space, "interval", seconds=1800)
|
| 233 |
|
| 234 |
-
def launch_backend():
|
| 235 |
-
import subprocess
|
| 236 |
-
from src.backend.envs import DEVICE
|
| 237 |
-
if DEVICE not in {'cpu'}:
|
| 238 |
-
_ = subprocess.run(["python", "backend-cli.py"])
|
| 239 |
-
|
| 240 |
scheduler.start()
|
| 241 |
|
| 242 |
interface.launch()
|
|
|
|
| 231 |
scheduler = BackgroundScheduler()
|
| 232 |
scheduler.add_job(restart_space, "interval", seconds=1800)
|
| 233 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 234 |
scheduler.start()
|
| 235 |
|
| 236 |
interface.launch()
|