mgetz commited on
Commit
409e0c0
·
verified ·
1 Parent(s): 9525c60

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -2
app.py CHANGED
@@ -135,6 +135,14 @@ def respond(message, history):
135
  response = client.chat_completion(messages, max_tokens=100)
136
  print(response)
137
  return response['choices'][0]['message']['content'].strip()
138
-
139
- chatbot = gr.ChatInterface(respond, type="messages", theme="mgetz/Celeb_glitzy", title="Physics Chatbot", description="Use this chatbot to help you with Physics")
 
 
 
 
 
 
 
 
140
  chatbot.launch()
 
135
  response = client.chat_completion(messages, max_tokens=100)
136
  print(response)
137
  return response['choices'][0]['message']['content'].strip()
138
+
139
+ with gr.Blocks(theme='mgetz/Celeb_glitzy') as chatbot:
140
+ with gr.Row():
141
+ with gr.Column(scale=1):
142
+ gr.Markdown(about_text)
143
+
144
+ with gr.Column(scale=2):
145
+ gr.ChatInterface(respond)
146
+
147
+ #chatbot = gr.ChatInterface(respond, type="messages", theme="mgetz/Celeb_glitzy", title="Physics Chatbot", description="Use this chatbot to help you with Physics")
148
  chatbot.launch()