Commit ef363d22 authored by lishen's avatar lishen

[fix] gradio port

parent 6c144d6e
...@@ -16,7 +16,7 @@ from answer_search import * ...@@ -16,7 +16,7 @@ from answer_search import *
class ChatBotGraph: class ChatBotGraph:
def __init__(self): def __init__(self):
self.g = Graph( self.g = Graph(
'http://127.0.0.1:7476', 'http://127.0.0.1:7474',
user="neo4j", user="neo4j",
password="neo4j") password="neo4j")
self.classifier = QuestionClassifier(self.g) self.classifier = QuestionClassifier(self.g)
...@@ -50,4 +50,4 @@ if __name__ == '__main__': ...@@ -50,4 +50,4 @@ if __name__ == '__main__':
# fn,inputs,outputs都是必填函数 # fn,inputs,outputs都是必填函数
demo = gr.Interface(fn=handler.chat_main, inputs="text", outputs="text") 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)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment