Spaces:
Sleeping
Sleeping
WIP: Add latest trend functionality
Browse files- Gradio_UI.py +10 -4
Gradio_UI.py
CHANGED
|
@@ -262,12 +262,18 @@ class GradioUI:
|
|
| 262 |
import gradio as gr
|
| 263 |
|
| 264 |
with gr.Blocks(fill_height=True) as demo:
|
|
|
|
|
|
|
|
|
|
| 265 |
start_message = (
|
| 266 |
-
"Welcome to Trend Finder!
|
| 267 |
-
"
|
| 268 |
-
"
|
| 269 |
)
|
| 270 |
-
stored_messages = gr.State(
|
|
|
|
|
|
|
|
|
|
| 271 |
file_uploads_log = gr.State([])
|
| 272 |
chatbot = gr.Chatbot(
|
| 273 |
label="Agent",
|
|
|
|
| 262 |
import gradio as gr
|
| 263 |
|
| 264 |
with gr.Blocks(fill_height=True) as demo:
|
| 265 |
+
assistant_aligning_message = (
|
| 266 |
+
"Always state your sources for the information you provide."
|
| 267 |
+
)
|
| 268 |
start_message = (
|
| 269 |
+
"Welcome to Trend Finder! Simply provide the area or topic you're interested in, "
|
| 270 |
+
"and I'll search online for the latest trends. Then, I'll return the results in "
|
| 271 |
+
"Markdown format for easy reference."
|
| 272 |
)
|
| 273 |
+
stored_messages = gr.State(
|
| 274 |
+
[gr.ChatMessage(role="assistant", content=start_message),
|
| 275 |
+
gr.ChatMessage(role="assistant", content=assistant_aligning_message)]
|
| 276 |
+
)
|
| 277 |
file_uploads_log = gr.State([])
|
| 278 |
chatbot = gr.Chatbot(
|
| 279 |
label="Agent",
|