Spaces:
Runtime error
Runtime error
Added Banner/"Teach me about stocks"
Browse files
app.py
CHANGED
|
@@ -81,7 +81,19 @@ def respond(message, history):
|
|
| 81 |
response += token # Add it to the response
|
| 82 |
yield response # yield the response:
|
| 83 |
|
| 84 |
-
chatbot = gr.ChatInterface(respond, examples = ["
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 85 |
chatbot.launch()
|
| 86 |
|
| 87 |
#build on your original chatbot from the previous lesson
|
|
|
|
| 81 |
response += token # Add it to the response
|
| 82 |
yield response # yield the response:
|
| 83 |
|
| 84 |
+
chatbot = gr.ChatInterface(respond, examples = ["Teach Me About Stocks", "Help Me Budget"], title = "ChaChingas", description = "This is a financial literacy chatbot")
|
| 85 |
+
|
| 86 |
+
with gr.Blocks() as chatbot:
|
| 87 |
+
gr.Image(
|
| 88 |
+
value = "Banner.png",
|
| 89 |
+
show_label = False,
|
| 90 |
+
show_share_button= False,
|
| 91 |
+
show_download_button= False )
|
| 92 |
+
gr.ChatInterface(respond, type = "messages")
|
| 93 |
+
|
| 94 |
+
|
| 95 |
+
|
| 96 |
+
|
| 97 |
chatbot.launch()
|
| 98 |
|
| 99 |
#build on your original chatbot from the previous lesson
|