Comments (6)
训练之后生成的文件默认在 /data/dl-data/models/tf-lib/output_couple
,server.py
默认从 /data/dl-data/models/tf-lib/output_couple_prod
读取文件,所以把文件夹重命名或者改一下读取的地址就好了
from seq2seq-couplet.
from seq2seq-couplet.
server.py 目前没有输出,可以浏览器访问一下 localhost:5000 看是不是已经启动了
from seq2seq-couplet.
您好,我运行了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.
接口地址是类似这种 http://localhost:5000/chat/couplet/上联
from seq2seq-couplet.
ok,运行成功,感谢
from seq2seq-couplet.
Related Issues (20)
- 也不一定对的出来呀:一担仲泥拦子路,三千夫子笑颜回
- 再来一下,船尾拔钉,孔子生于舟末
- 三观很正 HOT 5
- 如何将训练好的模型迁移到服务器上呢 HOT 1
- 上联下联字数对不上? HOT 1
- 求大神们帮助^.^
- What are these??? HOT 5
- 好兄弟 HOT 1
- 小昭推特来的。。。百万坦克上广场。。。 HOT 1
- 饥鸡盗稻童筒打 HOT 1
- 很强大,但有些结果,情况不忍直视... HOT 1
- 作者你好,请教一下你的Demo的界面的相关代码,谢谢
- model.ckpl HOT 1
- self.eval_session.run()运算出来的结果维度有问题,会导致解码时代码报错 HOT 3
- FileNotFoundError: [Errno 2] No such file or directory: '/data/dl-data/couplet/vocabs' HOT 1
- 😱 HOT 4
- 这个还是挺难的吧,工整吗?可以作为样本吧 HOT 2
- TypeError: only integer scalar arrays can be converted to a scalar index HOT 8
- 草!太有节目效果了! HOT 2
- 运行python couplet.py出现编码错误 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from seq2seq-couplet.