Downloads · 30 days
0
Cristian283/mine
mine is a machine learning model from Cristian283. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as creativeml-openrail-m.
Downloads · 30 days
0
Access
Public
Updated Jan 31, 2024
Repo size
—
Likes
0
Public
Click a slice to open those files.
Other1.5 KB · 74%
From the Hugging Face model README
import openai
openai.api_key = 'tu_clave_de_api'
response = openai.Completion.create( engine="text-davinci-003", # Puedes elegir otros motores disponibles prompt="Escribe aquí tu mensaje de entrada.", max_tokens=150 # Puedes ajustar este parámetro según tus necesidades )
generated_text = response['choices'][0]['text'] print(generated_text)