Spaces:
Sleeping
Sleeping
Omar Solano
commited on
Commit
β’
a938093
1
Parent(s):
3e7bb9e
remove api intercept
Browse files- README.md +1 -0
- scripts/gradio-ui.py +8 -7
README.md
CHANGED
@@ -4,6 +4,7 @@ emoji: π§π»βπ«
|
|
4 |
colorFrom: gray
|
5 |
colorTo: pink
|
6 |
sdk: gradio
|
|
|
7 |
app_file: scripts/gradio-ui.py
|
8 |
pinned: false
|
9 |
---
|
|
|
4 |
colorFrom: gray
|
5 |
colorTo: pink
|
6 |
sdk: gradio
|
7 |
+
sdk_version: 4.19.2
|
8 |
app_file: scripts/gradio-ui.py
|
9 |
pinned: false
|
10 |
---
|
scripts/gradio-ui.py
CHANGED
@@ -31,13 +31,14 @@ from call_openai import api_function_call
|
|
31 |
|
32 |
logger = logging.getLogger(__name__)
|
33 |
logging.basicConfig(level=logging.INFO)
|
34 |
-
|
35 |
-
|
36 |
-
#
|
37 |
-
|
38 |
-
|
39 |
-
os.environ["
|
40 |
-
os.environ["
|
|
|
41 |
|
42 |
CONCURRENCY_COUNT = int(os.getenv("CONCURRENCY_COUNT", 64))
|
43 |
MONGODB_URI = os.getenv("MONGODB_URI")
|
|
|
31 |
|
32 |
logger = logging.getLogger(__name__)
|
33 |
logging.basicConfig(level=logging.INFO)
|
34 |
+
logging.getLogger("httpx").setLevel(logging.WARNING)
|
35 |
+
|
36 |
+
# # This variables are used to intercept API calls
|
37 |
+
# # launch mitmweb
|
38 |
+
# cert_file = "/Users/omar/Downloads/mitmproxy-ca-cert.pem"
|
39 |
+
# os.environ["REQUESTS_CA_BUNDLE"] = cert_file
|
40 |
+
# os.environ["SSL_CERT_FILE"] = cert_file
|
41 |
+
# os.environ["HTTPS_PROXY"] = "http://127.0.0.1:8080"
|
42 |
|
43 |
CONCURRENCY_COUNT = int(os.getenv("CONCURRENCY_COUNT", 64))
|
44 |
MONGODB_URI = os.getenv("MONGODB_URI")
|