Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -136,6 +136,8 @@ def respond(message, history):
|
|
| 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):
|
|
@@ -143,6 +145,7 @@ with gr.Blocks(theme='mgetz/Celeb_glitzy') as chatbot:
|
|
| 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()
|
|
|
|
| 136 |
print(response)
|
| 137 |
return response['choices'][0]['message']['content'].strip()
|
| 138 |
|
| 139 |
+
about_text = "Use this chatbot to help you with Physics"
|
| 140 |
+
|
| 141 |
with gr.Blocks(theme='mgetz/Celeb_glitzy') as chatbot:
|
| 142 |
with gr.Row():
|
| 143 |
with gr.Column(scale=1):
|
|
|
|
| 145 |
|
| 146 |
with gr.Column(scale=2):
|
| 147 |
gr.ChatInterface(respond)
|
| 148 |
+
|
| 149 |
|
| 150 |
#chatbot = gr.ChatInterface(respond, type="messages", theme="mgetz/Celeb_glitzy", title="Physics Chatbot", description="Use this chatbot to help you with Physics")
|
| 151 |
chatbot.launch()
|