Spaces:
Sleeping
Sleeping
WIP: Add latest trend functionality
Browse files- Gradio_UI.py +6 -5
Gradio_UI.py
CHANGED
|
@@ -262,17 +262,18 @@ class GradioUI:
|
|
| 262 |
import gradio as gr
|
| 263 |
|
| 264 |
with gr.Blocks(fill_height=True) as demo:
|
| 265 |
-
|
| 266 |
-
"
|
|
|
|
| 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
|
| 271 |
"Markdown format for easy reference."
|
| 272 |
)
|
| 273 |
stored_messages = gr.State(
|
| 274 |
-
[gr.ChatMessage(role="
|
| 275 |
-
gr.ChatMessage(role="assistant", content=
|
| 276 |
)
|
| 277 |
file_uploads_log = gr.State([])
|
| 278 |
chatbot = gr.Chatbot(
|
|
|
|
| 262 |
import gradio as gr
|
| 263 |
|
| 264 |
with gr.Blocks(fill_height=True) as demo:
|
| 265 |
+
user_task_message = (
|
| 266 |
+
"Hello Trend Finder! Provide the latest trend for a specific area or topic that I provide "
|
| 267 |
+
"you with and return the results in markdown format please."
|
| 268 |
)
|
| 269 |
start_message = (
|
| 270 |
"Welcome to Trend Finder! Simply provide the area or topic you're interested in, "
|
| 271 |
+
"and I'll search online for the latest trends. Then, I'll return the trends in "
|
| 272 |
"Markdown format for easy reference."
|
| 273 |
)
|
| 274 |
stored_messages = gr.State(
|
| 275 |
+
[gr.ChatMessage(role="user", content=user_task_message),
|
| 276 |
+
gr.ChatMessage(role="assistant", content=start_message)]
|
| 277 |
)
|
| 278 |
file_uploads_log = gr.State([])
|
| 279 |
chatbot = gr.Chatbot(
|