Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -18,7 +18,7 @@ def python_tutor_bot(user_input):
|
|
| 18 |
|
| 19 |
# Create a completion request
|
| 20 |
response = openai.ChatCompletion.create(
|
| 21 |
-
model="gpt-
|
| 22 |
messages=[
|
| 23 |
{
|
| 24 |
"role": "system",
|
|
@@ -69,7 +69,7 @@ chatbot_ui = gr.Interface(
|
|
| 69 |
outputs=gr.Textbox(),
|
| 70 |
title="Python Tutor Bot",
|
| 71 |
description="A friendly Python tutor bot to help you learn and troubleshoot Python. Ask any question!",
|
| 72 |
-
live=
|
| 73 |
)
|
| 74 |
|
| 75 |
# Launch Gradio UI
|
|
|
|
| 18 |
|
| 19 |
# Create a completion request
|
| 20 |
response = openai.ChatCompletion.create(
|
| 21 |
+
model="gpt-40-mini",
|
| 22 |
messages=[
|
| 23 |
{
|
| 24 |
"role": "system",
|
|
|
|
| 69 |
outputs=gr.Textbox(),
|
| 70 |
title="Python Tutor Bot",
|
| 71 |
description="A friendly Python tutor bot to help you learn and troubleshoot Python. Ask any question!",
|
| 72 |
+
live=True
|
| 73 |
)
|
| 74 |
|
| 75 |
# Launch Gradio UI
|