Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 4307d11

Browse files
Merge pull request avinashkranjan#2715 from avinashkranjan/deepsource-transform-a8441621
format code with autopep8
2 parents 8312751 + f0660e3 commit 4307d11

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎True False Automation/script.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@
1515
# Evaluate each statement using the GPT-3 model
1616
for statement in statements:
1717
prompt = f"Check if the following statement is true or false:\nStatement: {statement}\nAnswer:"
18-
18+
1919
response = openai.Completion.create(
2020
engine="davinci", # Use the appropriate engine
2121
prompt=prompt,
2222
max_tokens=1, # Limit the response to 1 token
2323
)
24-
24+
2525
answer = response.choices[0].text.strip()
26-
26+
2727
print(f"Statement: {statement}")
2828
print(f"Answer: {answer}")
2929
print("----------------------------")

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /