github-actions[bot] commited on
Commit
fcf8ddd
ยท
1 Parent(s): 7e103cf

Sync with https://github.com/mozilla-ai/any-agent

Browse files
Files changed (2) hide show
  1. Dockerfile +0 -1
  2. restart_space.py +11 -0
Dockerfile CHANGED
@@ -5,7 +5,6 @@ WORKDIR /app
5
  RUN apt-get update && apt-get install -y \
6
  build-essential \
7
  curl \
8
- software-properties-common \
9
  git \
10
  && rm -rf /var/lib/apt/lists/*
11
 
 
5
  RUN apt-get update && apt-get install -y \
6
  build-essential \
7
  curl \
 
8
  git \
9
  && rm -rf /var/lib/apt/lists/*
10
 
restart_space.py ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+
3
+ from huggingface_hub import HfApi
4
+
5
+ if __name__ == "__main__":
6
+ api = HfApi()
7
+ api.restart_space(
8
+ repo_id="mozilla-ai/document-to-podcast",
9
+ token=os.getenv("HF_TOKEN"),
10
+ factory_reboot=True,
11
+ )