Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SVLT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ALMF
SVLT
Commits
f7537a42
Commit
f7537a42
authored
1 year ago
by
Christopher Randolph Rhodes
Browse files
Options
Downloads
Patches
Plain Diff
Merge in ilastik API support for segmentation-to-object workflow
parent
20662b5c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
model_server/api.py
+8
-0
8 additions, 0 deletions
model_server/api.py
scripts/run_server.py
+5
-0
5 additions, 0 deletions
scripts/run_server.py
with
13 additions
and
0 deletions
model_server/api.py
+
8
−
0
View file @
f7537a42
...
...
@@ -28,6 +28,14 @@ def list_bounce_back(par1=None, par2=None):
def
list_session_paths
():
return
session
.
get_paths
()
@app.get
(
'
/status
'
)
def
show_session_status
():
return
{
'
status
'
:
'
running
'
,
'
models
'
:
session
.
describe_loaded_models
(),
'
paths
'
:
session
.
get_paths
(),
}
def
change_path
(
key
,
path
):
try
:
if
session
.
get_paths
()[
key
]
==
path
:
...
...
This diff is collapsed.
Click to expand it.
scripts/run_server.py
+
5
−
0
View file @
f7537a42
import
argparse
from
multiprocessing
import
Process
import
uvicorn
import
webbrowser
from
conf.defaults
import
server_conf
...
...
@@ -44,6 +45,10 @@ if __name__ == '__main__':
)
server_process
.
start
()
url
=
f
'
http://
{
args
.
host
}
:
{
int
(
args
.
port
)
:
04
d
}
/status
'
print
(
url
)
webbrowser
.
open
(
url
,
new
=
1
,
autoraise
=
True
)
if
args
.
debug
:
print
(
'
Running in debug mode
'
)
print
(
'
Type
"
STOP
"
to stop server
'
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment