My codes are like:
"""
1 from perplexity import Perplexity
2 perplexity = Perplexity()
3 answer = perplexity.search("What is the meaning of life?")
4 for a in answer:
5 print(a)
6 perplexity.close()
"""
When I run this, it just stuck in line 3, which is "search" function. After a long time, I will get this error message: websocket error: [Errno 60] Operation timed out.
Is there any solution?
My codes are like: """ 1 from perplexity import Perplexity 2 perplexity = Perplexity() 3 answer = perplexity.search("What is the meaning of life?") 4 for a in answer: 5 print(a) 6 perplexity.close() """ When I run this, it just stuck in line 3, which is "search" function. After a long time, I will get this error message: websocket error: [Errno 60] Operation timed out. Is there any solution?