# Help me finish the code!

**URL:** <https://discuss.roboflow.com/t/help-me-finish-the-code/6051>\
**Category:** 🤝  Community Help\
**Created:** [June 3, 2024, 3:42pm UTC](https://discuss.roboflow.com/t/help-me-finish-the-code/6051 "2024-06-03T15:42:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Satoshi\_Nakamoto](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/satoshi_nakamoto/32/4719_2.png) [@Satoshi\_Nakamoto](https://discuss.roboflow.com/u/Satoshi_Nakamoto)\
**Post date:** [June 3, 2024, 3:42pm UTC](https://discuss.roboflow.com/t/help-me-finish-the-code/6051/1 "2024-06-03T15:42:39Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex029/uploads/roboflow1/original/1X/bb6edbfa56d0cf2ee603f061e9e09103502cc8cc.png) [@system](https://discuss.roboflow.com/u/system)\
**Post date:** [June 24, 2024, 3:42pm UTC](https://discuss.roboflow.com/t/help-me-finish-the-code/6051/2 "2024-06-24T15:42:52Z")

</div>

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.
