Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
Q
QASystemOnMedicalKG
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lishen
QASystemOnMedicalKG
Commits
ef363d22
Commit
ef363d22
authored
Apr 17, 2023
by
lishen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[fix] gradio port
parent
6c144d6e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
chatbot_graph.py
chatbot_graph.py
+2
-2
No files found.
chatbot_graph.py
View file @
ef363d22
...
...
@@ -16,7 +16,7 @@ from answer_search import *
class
ChatBotGraph
:
def
__init__
(
self
):
self
.
g
=
Graph
(
'http://127.0.0.1:747
6
'
,
'http://127.0.0.1:747
4
'
,
user
=
"neo4j"
,
password
=
"neo4j"
)
self
.
classifier
=
QuestionClassifier
(
self
.
g
)
...
...
@@ -50,4 +50,4 @@ if __name__ == '__main__':
# fn,inputs,outputs都是必填函数
demo
=
gr
.
Interface
(
fn
=
handler
.
chat_main
,
inputs
=
"text"
,
outputs
=
"text"
)
demo
.
launch
(
share
=
True
)
demo
.
launch
(
share
=
True
,
server_name
=
"0.0.0.0"
,
server_port
=
7860
)
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