Skip to content
View Snehagavande's full-sized avatar

Highlights

  • Pro
Block or Report

Block or report Snehagavande

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
Snehagavande/README.md

"C:\Users\sneha\Downloads\appl.py" import openai import gradio as gr

openai.api_key = "Your API key"

messages = [ {"role": "system", "content": "You are a helpful and kind AI Assistant."}, ]

def chatbot(input): if input: messages.append({"role": "user", "content": input}) chat = openai.ChatCompletion.create( model="gpt-3.5-turbo", messages=messages ) reply = chat.choices[0].message.content messages.append({"role": "assistant", "content": reply}) return reply

inputs = gr.inputs.Textbox(lines=7, label="Chat with AI") outputs = gr.outputs.Textbox(label="Reply")

gr.Interface(fn=chatbot, inputs=inputs, outputs=outputs, title="AI Chatbot", description="Ask anything you want", theme="compact").launch(share=True)

Popular repositories

  1. Snehagavande Snehagavande Public

    Config files for my GitHub profile.

  2. Landing-page-for-fitness-gym- Landing-page-for-fitness-gym- Public

  3. innovation-4 innovation-4 Public

    GymLandingPage is a lightweight and customizable template for creating an attractive landing page for fitness centers and gyms. It's designed with a responsive layout, easy customization, and key s…

    HTML

  4. todolist todolist Public

    CSS

  5. linguictranslation linguictranslation Public

  6. indic-lang-translation indic-lang-translation Public

    Explore our E-commerce Indic Language Translation project! Seamlessly translate UI, product descriptions, and more. Break language barriers and enhance user experience. Join us in fostering inclusi…

    Java