Download code_file from SmManoj/text_classi: direct link, hf CLI and curl.
- Browser
- Download file 414 Bytes
-
https://huggingface.co/SmManoj/text_classi/resolve/main/code_file
- Command line
-
hf download hf://SmManoj/text_classi/code_file
-
curl -L -o code_file https://huggingface.co/SmManoj/text_classi/resolve/main/code_file
414 Bytes
| from openai import OpenAI | |
| client = OpenAI() | |
| response = client.chat.completions.create( | |
| model="gpt-4", | |
| messages=[ | |
| { | |
| "role": "user", | |
| "content": "This is awesome! // Negative\nThis is bad! // Positive\nWow that movie was rad! // Positive\nWhat a horrible show! //" | |
| } | |
| ], | |
| temperature=1, | |
| max_tokens=256, | |
| top_p=1, | |
| frequency_penalty=0, | |
| presence_penalty=0 | |
| ) |