Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ def openai_chat(messages, user_input):
|
|
10 |
messages.append({"role": "user", "content": user_input})
|
11 |
|
12 |
response = openai.ChatCompletion.create(
|
13 |
-
model="gpt-
|
14 |
messages=messages
|
15 |
)
|
16 |
|
@@ -24,7 +24,7 @@ def openai_chat(messages, user_input):
|
|
24 |
return chat_history, messages
|
25 |
|
26 |
# Creating Gradio UI
|
27 |
-
with gr.Blocks() as demo:
|
28 |
gr.Markdown("### OpenAI Chatbot with Gradio Chatbox")
|
29 |
|
30 |
chatbot = gr.Chatbot(label="Chat History")
|
|
|
10 |
messages.append({"role": "user", "content": user_input})
|
11 |
|
12 |
response = openai.ChatCompletion.create(
|
13 |
+
model="gpt-3.5-turbo",
|
14 |
messages=messages
|
15 |
)
|
16 |
|
|
|
24 |
return chat_history, messages
|
25 |
|
26 |
# Creating Gradio UI
|
27 |
+
with gr.Blocks(theme="Hev832/niceandsimple") as demo:
|
28 |
gr.Markdown("### OpenAI Chatbot with Gradio Chatbox")
|
29 |
|
30 |
chatbot = gr.Chatbot(label="Chat History")
|