Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mahindra_ocr_shikhin
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
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sikhin.vc
mahindra_ocr_shikhin
Commits
6c38bab9
Commit
6c38bab9
authored
Dec 05, 2022
by
sikhin.vc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update app.py
parent
7ab18e7b
Pipeline
#49725
failed with stage
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
app.py
app.py
+2
-2
No files found.
app.py
View file @
6c38bab9
...
@@ -26,7 +26,7 @@ app = FastAPI()
...
@@ -26,7 +26,7 @@ app = FastAPI()
@
app
.
post
(
"/"
)
@
app
.
post
(
"/
Text_recognition
"
)
def
extract_text_diectly
(
file
:
bytes
=
File
(
...
)):
def
extract_text_diectly
(
file
:
bytes
=
File
(
...
)):
try
:
try
:
...
@@ -49,5 +49,5 @@ def extract_text_diectly(file: bytes = File(...)):
...
@@ -49,5 +49,5 @@ def extract_text_diectly(file: bytes = File(...)):
print
(
e
)
print
(
e
)
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
uvicorn
.
run
(
"app:app"
,
host
=
"
localhost
"
,
port
=
8290
)
uvicorn
.
run
(
"app:app"
,
host
=
"
0.0.0.0
"
,
port
=
8290
)
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