Spaces:
Runtime error
Runtime error
update
Browse files- Dockerfile +1 -1
- README.md +2 -2
- main.py +5 -1
Dockerfile
CHANGED
|
@@ -27,4 +27,4 @@ WORKDIR $HOME/app
|
|
| 27 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
| 28 |
COPY --chown=user . $HOME/app
|
| 29 |
|
| 30 |
-
CMD ["
|
|
|
|
| 27 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
| 28 |
COPY --chown=user . $HOME/app
|
| 29 |
|
| 30 |
+
CMD ["python", "main.py"]
|
README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
| 1 |
---
|
| 2 |
title: Voice Activity Detection
|
| 3 |
-
emoji:
|
| 4 |
colorFrom: purple
|
| 5 |
colorTo: gray
|
| 6 |
sdk: docker
|
| 7 |
-
|
| 8 |
---
|
| 9 |
|
| 10 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 1 |
---
|
| 2 |
title: Voice Activity Detection
|
| 3 |
+
emoji: 🐳
|
| 4 |
colorFrom: purple
|
| 5 |
colorTo: gray
|
| 6 |
sdk: docker
|
| 7 |
+
app_port: 7860
|
| 8 |
---
|
| 9 |
|
| 10 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
main.py
CHANGED
|
@@ -1,5 +1,8 @@
|
|
| 1 |
#!/usr/bin/python3
|
| 2 |
# -*- coding: utf-8 -*-
|
|
|
|
|
|
|
|
|
|
| 3 |
import argparse
|
| 4 |
import json
|
| 5 |
import platform
|
|
@@ -126,7 +129,8 @@ def main():
|
|
| 126 |
)
|
| 127 |
|
| 128 |
blocks.queue().launch(
|
| 129 |
-
share=False if platform.system() == "Windows" else False
|
|
|
|
| 130 |
)
|
| 131 |
return
|
| 132 |
|
|
|
|
| 1 |
#!/usr/bin/python3
|
| 2 |
# -*- coding: utf-8 -*-
|
| 3 |
+
"""
|
| 4 |
+
https://huggingface.co/spaces/sayakpaul/demo-docker-gradio
|
| 5 |
+
"""
|
| 6 |
import argparse
|
| 7 |
import json
|
| 8 |
import platform
|
|
|
|
| 129 |
)
|
| 130 |
|
| 131 |
blocks.queue().launch(
|
| 132 |
+
share=False if platform.system() == "Windows" else False,
|
| 133 |
+
server_name="0.0.0.0", server_port=7860
|
| 134 |
)
|
| 135 |
return
|
| 136 |
|