YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

import openai import gradio as gr

openai.api_key = "YOUR_OPENAI_API_KEY" # Replace with your OpenAI API key

def chat_with_gpt(message): response = openai.ChatCompletion.create( model="gpt-3.5-turbo", # Use "gpt-4" if you have access messages=[{"role": "user", "content": message}] ) return response["choices"][0]["message"]["content"]

iface = gr.Interface( fn=chat_with_gpt, inputs="text", outputs="text", title="My Personal Chatbot", description="Talk to your personal AI assistant!" )

iface.launch()

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support