mirror of https://github.com/hpcaitech/ColossalAI
Update generate_gpt35_answers.py
fix spelling error with generate_gpt35_answers.pypull/3680/head
parent
bfbf650588
commit
8ba7858753
|
@ -35,7 +35,7 @@ logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
def get_answer(question: str, max_tokens: int):
|
def get_answer(question: str, max_tokens: int):
|
||||||
answer = question
|
answer = question
|
||||||
prompt = question['instruction'] if question['input'] == "" else question['instuction'] + \
|
prompt = question['instruction'] if question['input'] == "" else question['instruction'] + \
|
||||||
" " + question['input']
|
" " + question['input']
|
||||||
for _ in range(MAX_API_RETRY):
|
for _ in range(MAX_API_RETRY):
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue