Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Drexel 2022-2023 AIML Capstone - Digital Pathology
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Zac Rahn
Drexel 2022-2023 AIML Capstone - Digital Pathology
Commits
b0cf3ed2
Commit
b0cf3ed2
authored
Jan 24, 2023
by
dw927
Browse files
Options
Downloads
Patches
Plain Diff
Removed test endpoints. Aliased provider. Removed redundant report endpoint from front end.
parent
dc238a4c
No related branches found
No related tags found
1 merge request
!1
Staging for Q2 Work
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
front_end/dpath.py
+1
-8
1 addition, 8 deletions
front_end/dpath.py
upload_service/app.py
+3
-7
3 additions, 7 deletions
upload_service/app.py
with
4 additions
and
15 deletions
front_end/dpath.py
+
1
−
8
View file @
b0cf3ed2
from
flask
import
Flask
,
render_template
,
url_for
,
flash
,
redirect
from
flask
import
jsonify
from
flask
import
request
import
test_data_provider
as
provider
import
requests
import
urllib.request
import
os
...
...
@@ -48,9 +47,3 @@ def upload_image():
def
display_image
(
filename
):
#print('display_image filename: ' + filename)
return
redirect
(
url_for
(
'
static
'
,
filename
=
'
uploads/
'
+
filename
),
code
=
301
)
\ No newline at end of file
@app.route
(
"
/report/<int:report_id>
"
)
def
get_report
(
report_id
)
:
return
jsonify
(
provider
.
get_report
(
report_id
))
This diff is collapsed.
Click to expand it.
upload_service/app.py
+
3
−
7
View file @
b0cf3ed2
...
...
@@ -2,7 +2,7 @@ from flask import Flask
from
flask
import
jsonify
from
flask
import
request
from
flask
import
render_template
from
s3_provider
import
Provider
from
s3_provider
import
Provider
as
provider
from
fake_model
import
LearningModel
as
Model
import
uuid
...
...
@@ -18,10 +18,6 @@ VALID_EXTENSIONS = [
PREFIX
=
'
dpath
'
@app.route
(
f
'
/
{
PREFIX
}
/ping
'
,
methods
=
[
'
GET
'
])
def
ping
()
:
return
'
pong
'
@app.route
(
f
'
/
{
PREFIX
}
/
'
)
def
home
():
return
render_template
(
'
home.html
'
)
...
...
@@ -36,7 +32,7 @@ def upload_image():
if
response
.
status_code
==
400
:
return
response
provider
=
P
rovider
()
provider
=
p
rovider
()
id
=
uuid
.
uuid1
()
provider
.
save_binary
(
request
.
files
[
'
file
'
],
id
)
response
=
jsonify
(
Model
(
id
).
start
())
...
...
...
...
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
sign in
to comment