Spaces:
Build error
Build error
谢璐璟 commited on
Commit ·
4bbc19b
1
Parent(s): 8d4a67d
with_token
Browse files
app.py
CHANGED
|
@@ -50,7 +50,7 @@ def check_cc_license(youtube_url):
|
|
| 50 |
# 从您的模块中导入必要的函数
|
| 51 |
from utils.generate_distractors import prepare_q_inputs, construct_prompt_textonly, generate_distractors
|
| 52 |
from utils.api_utils import generate_from_openai_chat_completion
|
| 53 |
-
|
| 54 |
def generate_distractors_sync(model_name: str,
|
| 55 |
queries: list,
|
| 56 |
n: int=1,
|
|
|
|
| 50 |
# 从您的模块中导入必要的函数
|
| 51 |
from utils.generate_distractors import prepare_q_inputs, construct_prompt_textonly, generate_distractors
|
| 52 |
from utils.api_utils import generate_from_openai_chat_completion
|
| 53 |
+
os.environ["OPENAI_API_KEY"] = "sk-h8rybT55JORrT40y2397A06c8f2444F8Ad49407fE85eBf76"
|
| 54 |
def generate_distractors_sync(model_name: str,
|
| 55 |
queries: list,
|
| 56 |
n: int=1,
|