Gorgefound commited on
Commit
cf497d0
·
verified ·
1 Parent(s): 337856f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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-4o", # or use "gpt-3.5-turbo"
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")