Amogh-kal1 commited on
Commit
43923f4
·
verified ·
1 Parent(s): 72ddcb6

Upload folder using huggingface_hub

Browse files
Files changed (3) hide show
  1. Dockerfile +1 -1
  2. openenv.yaml +2 -2
  3. server/app.py +2 -2
Dockerfile CHANGED
@@ -15,6 +15,6 @@ COPY . .
15
 
16
  EXPOSE 7860
17
  ENV PYTHONUNBUFFERED=1
18
- ENV ENABLE_WEB_INTERFACE=false
19
 
20
  CMD ["python", "-m", "uvicorn", "server.app:app", "--host", "0.0.0.0", "--port", "7860"]
 
15
 
16
  EXPOSE 7860
17
  ENV PYTHONUNBUFFERED=1
18
+ ENV ENABLE_WEB_INTERFACE=true
19
 
20
  CMD ["python", "-m", "uvicorn", "server.app:app", "--host", "0.0.0.0", "--port", "7860"]
openenv.yaml CHANGED
@@ -1,6 +1,6 @@
1
 
2
  spec_version: 2
3
- name: whipstudio-env
4
  type: space
5
  runtime: fastapi
6
  app: server.app:app
@@ -14,7 +14,7 @@ metadata:
14
  training scripts across five tasks with continuous reward scoring.
15
  author: Amogh-kal1
16
  license: Apache-2.0
17
- repository: Amogh-kal1/whipstudio-env
18
  tags:
19
  - openenv
20
  - rl
 
1
 
2
  spec_version: 2
3
+ name: whipstudio
4
  type: space
5
  runtime: fastapi
6
  app: server.app:app
 
14
  training scripts across five tasks with continuous reward scoring.
15
  author: Amogh-kal1
16
  license: Apache-2.0
17
+ repository: Amogh-kal1/whipstudio
18
  tags:
19
  - openenv
20
  - rl
server/app.py CHANGED
@@ -32,7 +32,7 @@ app: FastAPI = create_app(
32
  MLDebugEnvironment,
33
  MLDebugAction,
34
  MLDebugObservation,
35
- env_name="whipstudio-env",
36
  max_concurrent_envs=4,
37
  )
38
 
@@ -43,7 +43,7 @@ def build_info():
43
  import platform
44
 
45
  return {
46
- "env_name": "whipstudio-env",
47
  "python": platform.python_version(),
48
  "platform": platform.platform(),
49
  "port": os.environ.get("PORT"),
 
32
  MLDebugEnvironment,
33
  MLDebugAction,
34
  MLDebugObservation,
35
+ env_name="whipstudio",
36
  max_concurrent_envs=4,
37
  )
38
 
 
43
  import platform
44
 
45
  return {
46
+ "env_name": "whipstudio",
47
  "python": platform.python_version(),
48
  "platform": platform.platform(),
49
  "port": os.environ.get("PORT"),