Coder Social home page Coder Social logo

Comments (6)

wb14123 avatar wb14123 commented on July 20, 2024

训练之后生成的文件默认在 /data/dl-data/models/tf-lib/output_coupleserver.py 默认从 /data/dl-data/models/tf-lib/output_couple_prod 读取文件,所以把文件夹重命名或者改一下读取的地址就好了

from seq2seq-couplet.

info-wyf avatar info-wyf commented on July 20, 2024

from seq2seq-couplet.

wb14123 avatar wb14123 commented on July 20, 2024

server.py 目前没有输出,可以浏览器访问一下 localhost:5000 看是不是已经启动了

from seq2seq-couplet.

info-wyf avatar info-wyf commented on July 20, 2024

您好,我运行了server后,打开localhost:5000,发现返回的是:
::1 - - [2018-04-13 15:58:56] "GET / HTTP/1.1" 404 374 0.019463

将此服务停止,返回timeout信息,如下:

Fri Apr 13 15:49:40 2018
Traceback (most recent call last):
File "server.py", line 34, in
http_server.serve_forever()
File "/Users/xxx/anaconda3/lib/python3.6/site-packages/gevent/baseserver.py", line 362, in serve_forever
self._stop_event.wait()
File "/Users/xxx/anaconda3/lib/python3.6/site-packages/gevent/event.py", line 219, in wait
return self._wait(timeout)
File "/Users/xxx/anaconda3/lib/python3.6/site-packages/gevent/event.py", line 129, in _wait
gotit = self._wait_core(timeout)
File "/Users/xxx/anaconda3/lib/python3.6/site-packages/gevent/event.py", line 106, in _wait_core
result = self.hub.switch()
File "/Users/xxx/anaconda3/lib/python3.6/site-packages/gevent/hub.py", line 630, in switch
return RawGreenlet.switch(self)

不知运行server.py时是否还有其他需要注意的?

from seq2seq-couplet.

wb14123 avatar wb14123 commented on July 20, 2024

接口地址是类似这种 http://localhost:5000/chat/couplet/上联

from seq2seq-couplet.

info-wyf avatar info-wyf commented on July 20, 2024

ok,运行成功,感谢

from seq2seq-couplet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.