Spaces:
Running
Running
Commit
·
1e80265
1
Parent(s):
8127f51
Replace Chatgpt4o with DarkAI in provider lists for NLP processing functions
Browse files- nlp_processes.py +9 -9
nlp_processes.py
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
from g4f.client import Client
|
2 |
-
from g4f.Provider import RetryProvider,
|
3 |
import threading
|
4 |
|
5 |
def generate_nlp_summary(temp_summary):
|
@@ -7,7 +7,7 @@ def generate_nlp_summary(temp_summary):
|
|
7 |
try:
|
8 |
client = Client(
|
9 |
provider=RetryProvider(
|
10 |
-
providers=[
|
11 |
max_retries=6,
|
12 |
),
|
13 |
)
|
@@ -23,7 +23,7 @@ def generate_nlp_summary(temp_summary):
|
|
23 |
print(str(e))
|
24 |
client = Client(
|
25 |
provider=RetryProvider(
|
26 |
-
providers=[ChatGptEs,
|
27 |
max_retries=6,
|
28 |
),
|
29 |
)
|
@@ -44,7 +44,7 @@ def generate_nlp_mindmap(temp_summary):
|
|
44 |
try:
|
45 |
client = Client(
|
46 |
provider=RetryProvider(
|
47 |
-
providers=[
|
48 |
max_retries=6,
|
49 |
),
|
50 |
)
|
@@ -60,7 +60,7 @@ def generate_nlp_mindmap(temp_summary):
|
|
60 |
print(str(e))
|
61 |
client = Client(
|
62 |
provider=RetryProvider(
|
63 |
-
providers=[ChatGptEs,
|
64 |
max_retries=6,
|
65 |
),
|
66 |
)
|
@@ -81,7 +81,7 @@ def fix_title(title):
|
|
81 |
try:
|
82 |
client = Client(
|
83 |
provider=RetryProvider(
|
84 |
-
providers=[
|
85 |
max_retries=6,
|
86 |
),
|
87 |
)
|
@@ -120,7 +120,7 @@ def fix_title(title):
|
|
120 |
print(str(e))
|
121 |
client = Client(
|
122 |
provider=RetryProvider(
|
123 |
-
providers=[ChatGptEs,
|
124 |
max_retries=6,
|
125 |
),
|
126 |
)
|
@@ -164,7 +164,7 @@ def fix_citation(citation):
|
|
164 |
try:
|
165 |
client = Client(
|
166 |
provider=RetryProvider(
|
167 |
-
providers=[
|
168 |
max_retries=6,
|
169 |
),
|
170 |
)
|
@@ -201,7 +201,7 @@ def fix_citation(citation):
|
|
201 |
print(str(e))
|
202 |
client = Client(
|
203 |
provider=RetryProvider(
|
204 |
-
providers=[ChatGptEs,
|
205 |
max_retries=6,
|
206 |
),
|
207 |
)
|
|
|
1 |
from g4f.client import Client
|
2 |
+
from g4f.Provider import RetryProvider, Airforce, AmigoChat, Blackbox, ChatGptEs, DarkAI, Liaobots, PollinationsAI, Jmuz
|
3 |
import threading
|
4 |
|
5 |
def generate_nlp_summary(temp_summary):
|
|
|
7 |
try:
|
8 |
client = Client(
|
9 |
provider=RetryProvider(
|
10 |
+
providers=[Airforce, AmigoChat, Blackbox],
|
11 |
max_retries=6,
|
12 |
),
|
13 |
)
|
|
|
23 |
print(str(e))
|
24 |
client = Client(
|
25 |
provider=RetryProvider(
|
26 |
+
providers=[ChatGptEs, DarkAI, Liaobots, PollinationsAI, Blackbox, Jmuz],
|
27 |
max_retries=6,
|
28 |
),
|
29 |
)
|
|
|
44 |
try:
|
45 |
client = Client(
|
46 |
provider=RetryProvider(
|
47 |
+
providers=[Airforce, AmigoChat, Blackbox],
|
48 |
max_retries=6,
|
49 |
),
|
50 |
)
|
|
|
60 |
print(str(e))
|
61 |
client = Client(
|
62 |
provider=RetryProvider(
|
63 |
+
providers=[ChatGptEs, DarkAI, Liaobots, PollinationsAI, Blackbox, Jmuz],
|
64 |
max_retries=6,
|
65 |
),
|
66 |
)
|
|
|
81 |
try:
|
82 |
client = Client(
|
83 |
provider=RetryProvider(
|
84 |
+
providers=[Airforce, AmigoChat, Blackbox],
|
85 |
max_retries=6,
|
86 |
),
|
87 |
)
|
|
|
120 |
print(str(e))
|
121 |
client = Client(
|
122 |
provider=RetryProvider(
|
123 |
+
providers=[ChatGptEs, DarkAI, Liaobots, PollinationsAI, Blackbox, Jmuz],
|
124 |
max_retries=6,
|
125 |
),
|
126 |
)
|
|
|
164 |
try:
|
165 |
client = Client(
|
166 |
provider=RetryProvider(
|
167 |
+
providers=[Airforce, AmigoChat, Blackbox],
|
168 |
max_retries=6,
|
169 |
),
|
170 |
)
|
|
|
201 |
print(str(e))
|
202 |
client = Client(
|
203 |
provider=RetryProvider(
|
204 |
+
providers=[ChatGptEs, DarkAI, Liaobots, PollinationsAI, Blackbox, Jmuz],
|
205 |
max_retries=6,
|
206 |
),
|
207 |
)
|