Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import g4f.api
|
2 |
import g4f.Provider
|
3 |
|
4 |
-
|
5 |
-
pass
|
6 |
-
g4f.Provider.__map__["Feature"] = Feature
|
7 |
|
8 |
app = g4f.api.create_app_with_demo_and_debug()
|
|
|
1 |
+
import ssl
|
2 |
+
import certifi
|
3 |
+
from functools import partial
|
4 |
+
|
5 |
+
ssl.default_ca_certs = certifi.where()
|
6 |
+
ssl.create_default_context = partial(
|
7 |
+
ssl.create_default_context,
|
8 |
+
cafile=certifi.where()
|
9 |
+
|
10 |
import g4f.api
|
11 |
import g4f.Provider
|
12 |
|
13 |
+
g4f.Provider.__map__["Feature"] = g4f.Provider.Custom
|
|
|
|
|
14 |
|
15 |
app = g4f.api.create_app_with_demo_and_debug()
|