Lurker News

Comments (85) 24 threads

Earlier comments
lappet1 reply#
Nice! I am guessing you don't want to hard code the domain/hostname in script.js (line 40) ?
alex_g1 reply#
Right, it's just localhost right now, so I don't think it matters.
lappet1 reply#
Btw I am unable to get it working locally. I only see 404s. Do I need anything special to serve the static files?
alex_g3 replies#
Happy to help. The static files should only be accessed by opening index.html in your browser. From another user: "Don't go to localhost:5000/, like you might think. Open file://.../WikiQuiz/index.html as a file in Chrome. It will make ajax requests to localhost:5000"

Continue this thread — 3 replies

filipmandaric2 replies#
Seems like a good idea, it would be great if there was a demo available.
alex_g#
Sorry for that, I wasn't releasing this as a product, and certainly didn't expect it to get this much attention! Maybe a v2 of this will have its own server :)
tedmiston#
I had the same thought. The Flask app could be a pretty trivial deploy on the Heroku free tier.
jameswason#
That's interesting!
frogpelt2 replies#
Really cool idea!

Unfortunately, I'm getting a 500 error on every request.
What did I do wrong?

kercker#
I got this problem too.

I solved it by downloading 'averaged_perceptron_tagger' from nltk.
>>>import nltk
>>>nltk.download('averaged_perceptron_tagger')

n1try1 reply#
Managed it by doing nltk.download('punkt')
omash#
Fixed it for me too, thanks. How did you debug the issue?

Load more comments