CoruNethron commited on
Commit
9b7b2f5
·
verified ·
1 Parent(s): 860d2ee

Update olapp.py

Browse files
Files changed (1) hide show
  1. olapp.py +2 -2
olapp.py CHANGED
@@ -16,7 +16,7 @@ class OlHandler(BaseHTTPRequestHandler):
16
  def do_GET(self):
17
  query = urlparse(self.path).query
18
  query_components = dict(qc.split("=") for qc in query.split("&"))
19
- q = urllib.parse.unquote_plus(query_components["q"]) #.encode("cp1252").decode("utf-8")
20
 
21
  #output = llm.create_completion(
22
  # q,
@@ -27,7 +27,7 @@ class OlHandler(BaseHTTPRequestHandler):
27
  self.send_response(200)
28
  self.end_headers()
29
  #self.wfile.write(output.encode('utf-8'))
30
- self.wfile.write(q) #.encode('utf-8'))
31
  return
32
 
33
 
 
16
  def do_GET(self):
17
  query = urlparse(self.path).query
18
  query_components = dict(qc.split("=") for qc in query.split("&"))
19
+ q = urllib.parse.unquote_plus(query_components["q"]).encode("utf-8").decode("cp1252")
20
 
21
  #output = llm.create_completion(
22
  # q,
 
27
  self.send_response(200)
28
  self.end_headers()
29
  #self.wfile.write(output.encode('utf-8'))
30
+ self.wfile.write(q.encode('utf-8'))
31
  return
32
 
33