Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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()
|