Spaces:
Runtime error
Runtime error
Jesus Carrasco commited on
Commit ·
dfc10d1
1
Parent(s): 4011179
Create app.py
Browse files12345678910111213141516171819import openaiimport gradio as gr
# Your chatbot function heredef chatbot(input_text): # Code to interact with GPT-3.5 Turbo and get a response # ... return response
# Create a Gradio UI for the chatbot functioniface = gr.Interface( fn=chatbot, inputs=gr.inputs.Textbox(lines=5, label="Your input"), outputs=gr.outputs.Textbox(label="Chatbot response"), title="Chatbot using GPT-3.5 Turbo",)
# Start the Gradio serveriface.launch()app.pyAdded+19