Spaces:
Sleeping
Sleeping
Fix: remove old API references
Browse files- server/auto_proxy.py +1 -2
- server/backend.py +4 -4
server/auto_proxy.py
CHANGED
@@ -2,7 +2,6 @@ import random
|
|
2 |
import requests
|
3 |
import time
|
4 |
import threading
|
5 |
-
from freeGPT import gpt3
|
6 |
|
7 |
|
8 |
def fetch_proxies():
|
@@ -31,7 +30,7 @@ def test_proxy(proxy, prompt, timeout):
|
|
31 |
"""
|
32 |
try:
|
33 |
start_time = time.time()
|
34 |
-
res = gpt3.Completion.create(prompt=prompt, proxy=proxy)
|
35 |
end_time = time.time()
|
36 |
response_time = end_time - start_time
|
37 |
|
|
|
2 |
import requests
|
3 |
import time
|
4 |
import threading
|
|
|
5 |
|
6 |
|
7 |
def fetch_proxies():
|
|
|
30 |
"""
|
31 |
try:
|
32 |
start_time = time.time()
|
33 |
+
# res = gpt3.Completion.create(prompt=prompt, proxy=proxy)
|
34 |
end_time = time.time()
|
35 |
response_time = end_time - start_time
|
36 |
|
server/backend.py
CHANGED
@@ -27,10 +27,10 @@ class Backend_Api:
|
|
27 |
}
|
28 |
}
|
29 |
|
30 |
-
if self.use_auto_proxy:
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
|
35 |
def _conversation(self):
|
36 |
"""
|
|
|
27 |
}
|
28 |
}
|
29 |
|
30 |
+
#if self.use_auto_proxy:
|
31 |
+
# update_proxies = threading.Thread(
|
32 |
+
# target=update_working_proxies, daemon=True)
|
33 |
+
# update_proxies.start()
|
34 |
|
35 |
def _conversation(self):
|
36 |
"""
|