Help me finish the code!

Hello community!
Help me complete the code.
I once wrote this:
import openai
openai.api_key = ‘--------------------------’
responce_text = openai.Completion.create(
model=‘text-davinci-003’,
prompt=‘How old am I?’,
max_tokens=1000,
n=1
)
for index, text in enumerate(responce_text[‘choices’]):
print(f’Possible answer{index}')
print(text[‘text’])

I need to do the same with this:
from roboflow import Roboflow
rf = Roboflow(api_key=“---------------------------”)
project = rf.workspace().project(“project-daemx”)
model = project.version(“1”).model
file = “screenshot.jpg”

Сhange this line so that only the ‘class’ name is printed, and not the whole thing

print(model.predict(file, confidence=40, overlap=30).json())

I apologize if I violated anything!