Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ColossalAI
Commits
8ba78587
Unverified
Commit
8ba78587
authored
May 04, 2023
by
digger-yu
Committed by
GitHub
May 04, 2023
Browse files
Update generate_gpt35_answers.py
fix spelling error with generate_gpt35_answers.py
parent
bfbf6505
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
applications/Chat/evaluate/generate_gpt35_answers.py
applications/Chat/evaluate/generate_gpt35_answers.py
+1
-1
No files found.
applications/Chat/evaluate/generate_gpt35_answers.py
View file @
8ba78587
...
@@ -35,7 +35,7 @@ logger = logging.getLogger(__name__)
...
@@ -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
[
'inst
r
uction'
]
+
\
" "
+
question
[
'input'
]
" "
+
question
[
'input'
]
for
_
in
range
(
MAX_API_RETRY
):
for
_
in
range
(
MAX_API_RETRY
):
try
:
try
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment