12189108 commited on
Commit
0197bfb
·
1 Parent(s): 8bab457
Files changed (3) hide show
  1. Dockerfile +1 -1
  2. README.md +1 -0
  3. api.py +1 -1
Dockerfile CHANGED
@@ -42,7 +42,7 @@ RUN playwright install firefox
42
  COPY utils ./utils
43
  COPY puppeteer-extra-plugin-stealth ./puppeteer-extra-plugin-stealth
44
  COPY api.py .
45
- EXPOSE 7860
46
 
47
  ENTRYPOINT ["/usr/bin/dumb-init", "--"]
48
  CMD ["/usr/local/bin/python","-u","/app/api.py"]
 
42
  COPY utils ./utils
43
  COPY puppeteer-extra-plugin-stealth ./puppeteer-extra-plugin-stealth
44
  COPY api.py .
45
+ EXPOSE 8000
46
 
47
  ENTRYPOINT ["/usr/bin/dumb-init", "--"]
48
  CMD ["/usr/local/bin/python","-u","/app/api.py"]
README.md CHANGED
@@ -5,6 +5,7 @@ colorFrom: pink
5
  colorTo: green
6
  sdk: docker
7
  pinned: false
 
8
  ---
9
 
10
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
5
  colorTo: green
6
  sdk: docker
7
  pinned: false
8
+ app_port: 8000
9
  ---
10
 
11
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
api.py CHANGED
@@ -62,4 +62,4 @@ def get_token():
62
  token = solve_start(data["url"], data["site_key"])
63
  return jsonify(token=token)
64
 
65
- app.run(host="0.0.0.0", port=7860)
 
62
  token = solve_start(data["url"], data["site_key"])
63
  return jsonify(token=token)
64
 
65
+ app.run(host="0.0.0.0", port=8000)