Spaces:
Runtime error
Runtime error
removed key
Browse files- app.py +0 -1
- utils_class.py.txt +9 -0
app.py
CHANGED
|
@@ -3,7 +3,6 @@ import openai
|
|
| 3 |
import threading as th
|
| 4 |
|
| 5 |
|
| 6 |
-
openai.api_key = "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"
|
| 7 |
|
| 8 |
def translateoutput(text,language):
|
| 9 |
completion = openai.ChatCompletion.create(
|
|
|
|
| 3 |
import threading as th
|
| 4 |
|
| 5 |
|
|
|
|
| 6 |
|
| 7 |
def translateoutput(text,language):
|
| 8 |
completion = openai.ChatCompletion.create(
|
utils_class.py.txt
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
mport pytestef pytest_addoption(parser):
|
| 2 |
+
parser.addoption('--runslow', action='store_true', default=False, help='run slow tests')
|
| 3 |
+
ef pytest_configure(config):
|
| 4 |
+
config.addinivalue_line('markers', 'slow: mark test as slow to run')
|
| 5 |
+
ef pytest_collection_modifyitems(config, items):
|
| 6 |
+
if config.getoption('--runslow'):
|
| 7 |
+
# --runslow given in cli: do not skip slow testsreturnskip_slow = pytest.mark.skip(reason='need --runslow option to run')
|
| 8 |
+
for item in items:
|
| 9 |
+
if 's
|