Spaces:
Paused
Paused
Update olapp.py
Browse files
olapp.py
CHANGED
@@ -14,7 +14,7 @@ print("Model loaded!")
|
|
14 |
class OlHandler(BaseHTTPRequestHandler):
|
15 |
|
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 |
|
|
|
14 |
class OlHandler(BaseHTTPRequestHandler):
|
15 |
|
16 |
def do_GET(self):
|
17 |
+
query = urlparse(self.path).query #.decode("utf-8")
|
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 |
|