smothiki commited on
Commit
ed583b4
·
1 Parent(s): 7b1e95e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -11
app.py CHANGED
@@ -2,7 +2,6 @@ import gradio as gr
2
  import pandas as pd
3
  from apscheduler.schedulers.background import BackgroundScheduler
4
  from huggingface_hub import snapshot_download
5
- from gradio_space_ci import configure_space_ci # FOR CI
6
 
7
  from src.display.about import (
8
  CITATION_BUTTON_LABEL,
@@ -375,13 +374,5 @@ scheduler = BackgroundScheduler()
375
  scheduler.add_job(restart_space, "interval", seconds=1800)
376
  scheduler.start()
377
 
378
- # Both launches the space and its CI
379
- configure_space_ci(
380
- demo.queue(default_concurrency_limit=40),
381
- #trusted_authors=[], add manually trusted authors
382
- private="True", # ephemeral spaces will have same visibility as the main space. Otherwise, set to `True` or `False` explicitly.
383
- variables={}, # We overwrite HF_HOME as tmp CI spaces will have no cache
384
- secrets=["HF_TOKEN", "H4_TOKEN"], # which secret do I want to copy from the main space? Can be a `List[str]`.
385
- hardware=None, # "cpu-basic" by default. Otherwise set to "auto" to have same hardware as the main space or any valid string value.
386
- storage=None, # no storage by default. Otherwise set to "auto" to have same storage as the main space or any valid string value.
387
- ).launch()
 
2
  import pandas as pd
3
  from apscheduler.schedulers.background import BackgroundScheduler
4
  from huggingface_hub import snapshot_download
 
5
 
6
  from src.display.about import (
7
  CITATION_BUTTON_LABEL,
 
374
  scheduler.add_job(restart_space, "interval", seconds=1800)
375
  scheduler.start()
376
 
377
+ demo.queue(default_concurrency_limit=40),
378
+ demo.launch()