Spaces:
Running
on
L40S
Running
on
L40S
hainazhu
commited on
Commit
·
111fd8a
1
Parent(s):
2acaa39
fix server settings
Browse files- .bash_history +13 -0
- Dockerfile +1 -1
- app.py +1 -1
.bash_history
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
pwd
|
2 |
+
ls
|
3 |
+
python3 app.py --server-port 7860
|
4 |
+
python3 app.py --server-port 7860 --server-name 0.0.0.0
|
5 |
+
python3 app.py --server-port 7860 --server-name 0.0.0.0
|
6 |
+
curl -v https://api.gradio.app
|
7 |
+
ping baidu.com
|
8 |
+
grep NetworkMode
|
9 |
+
ping 8.8.8.8
|
10 |
+
sudo iptables -L -v -n
|
11 |
+
whoami
|
12 |
+
iptables -L -v -n
|
13 |
+
exit
|
Dockerfile
CHANGED
@@ -10,4 +10,4 @@ COPY --chown=user ./requirements.txt requirements.txt
|
|
10 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
11 |
|
12 |
COPY --chown=user . /app
|
13 |
-
CMD ["python3", "app.py"
|
|
|
10 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
11 |
|
12 |
COPY --chown=user . /app
|
13 |
+
CMD ["python3", "app.py"]
|
app.py
CHANGED
@@ -137,4 +137,4 @@ with gr.Blocks(title="LeVo Demo Space") as demo:
|
|
137 |
|
138 |
# 启动应用
|
139 |
if __name__ == "__main__":
|
140 |
-
demo.launch()
|
|
|
137 |
|
138 |
# 启动应用
|
139 |
if __name__ == "__main__":
|
140 |
+
demo.launch(server_name="0.0.0.0", server_port=7860)
|