Spaces:
Sleeping
Sleeping
http logging
Browse files
app.py
CHANGED
@@ -30,6 +30,13 @@ logging.basicConfig(
|
|
30 |
)
|
31 |
logger = logging.getLogger(__name__)
|
32 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
# Constants
|
34 |
LIMIT = 1000 # Limit to 1000 reviews to avoid long processing times
|
35 |
OpenAIModel = "gpt-3.5-turbo"
|
|
|
30 |
)
|
31 |
logger = logging.getLogger(__name__)
|
32 |
|
33 |
+
import http.client
|
34 |
+
|
35 |
+
http.client.HTTPConnection.debuglevel = 1
|
36 |
+
req_log = logging.getLogger("requests.packages.urllib3")
|
37 |
+
req_log.setLevel(logging.DEBUG)
|
38 |
+
req_log.propagate = True
|
39 |
+
|
40 |
# Constants
|
41 |
LIMIT = 1000 # Limit to 1000 reviews to avoid long processing times
|
42 |
OpenAIModel = "gpt-3.5-turbo"
|