Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
pse-trapp-public
IntentFinder
Commits
5312aa3e
Commit
5312aa3e
authored
Apr 21, 2021
by
Patrick Schlindwein
Browse files
- [docs] Added instructions for local PyCharm run configuration
parent
3f8f4b74
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/nlp/README.md
View file @
5312aa3e
...
...
@@ -32,6 +32,15 @@ From the command shell as admin in the folder nlp run
```
uvicorn app.nlp_server:app --reload
```
Alternatively you can add a run configuration in PyCharm to have the debugger attached:
1.
Click "Add configuration" in the top right corner
2.
Add a new Python configuration by clicking on the "+" at the top left
3.
Give your run configuration an appropriate name like "FastAPI"
4.
In the configuration tab click the first dropdown and select "Module name"
5.
Enter
`uvicorn`
as module name
6.
Add
`app.nlp_server:app --reload`
to the parameters
7.
Save your configuration and enjoy hot reload and an attached debugger
The server will be reloaded after editing any file. Check it with http://127.0.0.1:8000/ which should return
*nlp server is available*
.
The OpenAPI doc is available under http://127.0.0.1:8000/docs
...
...
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