Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
openApi
/
image
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
4895af45
authored
Dec 10, 2024
by
xuxingxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tmpcode
parent
3366a04b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
README
app.py
README
View file @
4895af45
...
...
@@ -20,7 +20,8 @@ curl --location --request POST 'http://127.0.0.1:5001/predict' \
docker build -t image_v1 .
5.后台运行
docker run -d image_v1 -p 5001:5001 -name image -it /bin/bash
docker run -p 5001:5001 -d -it image_v1:latest bash
6.注意事项
打包需要的磁盘比较多
\ No newline at end of file
app.py
View file @
4895af45
...
...
@@ -53,4 +53,4 @@ def classify_image():
if
__name__
==
'__main__'
:
app
.
run
(
host
=
'0.0.0.0'
,
port
=
5001
)
app
.
run
(
port
=
5001
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment