Spaces:
Sleeping
Sleeping
Synced repo using 'sync_with_huggingface' Github Action
Browse files- __pycache__/gpt.cpython-310.pyc +0 -0
- gpt.py +2 -2
- requirements.txt +0 -0
- venv/conda-meta/history +1 -1
__pycache__/gpt.cpython-310.pyc
CHANGED
Binary files a/__pycache__/gpt.cpython-310.pyc and b/__pycache__/gpt.cpython-310.pyc differ
|
|
gpt.py
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
import openai
|
2 |
-
openai.api_key = 'sk-
|
3 |
def get_chat_completion(prompt, model="gpt-3.5-turbo"):
|
4 |
try:
|
5 |
response = openai.ChatCompletion.create(
|
@@ -11,4 +11,4 @@ def get_chat_completion(prompt, model="gpt-3.5-turbo"):
|
|
11 |
)
|
12 |
return response['choices'][0]['message']['content']
|
13 |
except Exception as e:
|
14 |
-
return str(e)
|
|
|
1 |
import openai
|
2 |
+
openai.api_key = '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'
|
3 |
def get_chat_completion(prompt, model="gpt-3.5-turbo"):
|
4 |
try:
|
5 |
response = openai.ChatCompletion.create(
|
|
|
11 |
)
|
12 |
return response['choices'][0]['message']['content']
|
13 |
except Exception as e:
|
14 |
+
return str(e)
|
requirements.txt
CHANGED
Binary files a/requirements.txt and b/requirements.txt differ
|
|
venv/conda-meta/history
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
==> 2023-12-18
|
2 |
# cmd: C:\Users\ashut\anaconda3\Scripts\conda-script.py create -p venv
|
3 |
# conda version: 22.9.0
|
|
|
1 |
+
==> 2023-12-18 01:37:33 <==
|
2 |
# cmd: C:\Users\ashut\anaconda3\Scripts\conda-script.py create -p venv
|
3 |
# conda version: 22.9.0
|