Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
22_23-J 52
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
22_23-J 52
22_23-J 52
Commits
e5848a59
Commit
e5848a59
authored
May 22, 2023
by
Chamodi Mandakini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update routes.py
parent
5c93c493
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
routes.py
routes.py
+25
-0
No files found.
routes.py
View file @
e5848a59
...
...
@@ -61,3 +61,28 @@ def process_image_skin():
return
render_template
(
'results.html'
,
result
=
prediction
)
return
'File uploaded successfully!'
def
docRec
(
disease
,
result
,
value
):
df
=
pd
.
read_excel
(
'docs
\
RELEVANTDOCTORS.xlsx'
)
# find rows that contain a keyword in a specific column
keyword
=
str
(
disease
)
column_name
=
'Disease'
rec
=
df
[
df
[
column_name
]
.
str
.
contains
(
keyword
)]
rec
=
rec
.
iloc
[:,
1
:]
table_classes
=
'table table-striped table-bordered table-hover'
if
value
==
"skinT"
:
textshow
=
True
else
:
textshow
=
False
if
value
==
"lung"
:
show_button
=
True
# render the output in a table format
return
render_template
(
'results.html'
,
rec
=
rec
.
to_html
(
index
=
False
,
classes
=
table_classes
),
result
=
result
,
show_button
=
show_button
,
textshow
=
textshow
)
else
:
show_button
=
False
return
render_template
(
'results.html'
,
rec
=
rec
.
to_html
(
index
=
False
,
classes
=
table_classes
),
result
=
result
,
show_button
=
show_button
,
textshow
=
textshow
)
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