Spaces:
Runtime error
Runtime error
Benjamin Bossan
commited on
Commit
·
c1723a7
1
Parent(s):
2e4eb94
More debugging of spaces
Browse filesSee if starting the gradio demo alone works. The app as a whole won't
work like that, this is only for testing.
- Dockerfile +1 -1
- start2.sh +0 -21
Dockerfile
CHANGED
|
@@ -27,4 +27,4 @@ EXPOSE 7860 8080
|
|
| 27 |
COPY --chown=user start2.sh .
|
| 28 |
RUN chmod +x start2.sh
|
| 29 |
|
| 30 |
-
CMD ["
|
|
|
|
| 27 |
COPY --chown=user start2.sh .
|
| 28 |
RUN chmod +x start2.sh
|
| 29 |
|
| 30 |
+
CMD ["python3", "demo.py"]
|
start2.sh
DELETED
|
@@ -1,21 +0,0 @@
|
|
| 1 |
-
#!/usr/bin/env bash
|
| 2 |
-
|
| 3 |
-
echo "Starting gradio app on default port 7860"
|
| 4 |
-
python3 demo.py &
|
| 5 |
-
pid_gradio=$!
|
| 6 |
-
|
| 7 |
-
echo "Starting web server"
|
| 8 |
-
uvicorn src.gistillery.webservice:app --port 8080 --host 0.0.0.0 &
|
| 9 |
-
pid_webserver=$!
|
| 10 |
-
|
| 11 |
-
# kill with ctrl-c
|
| 12 |
-
trap onexit INT
|
| 13 |
-
function onexit() {
|
| 14 |
-
echo "Killing background worker"
|
| 15 |
-
kill $pid_gradio
|
| 16 |
-
echo "Killing web server"
|
| 17 |
-
kill $pid_webserver
|
| 18 |
-
}
|
| 19 |
-
|
| 20 |
-
echo "Starting background worker"
|
| 21 |
-
python src/gistillery/worker.py
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|