hjerpe commited on
Commit
c511aca
·
1 Parent(s): 8b324c5

WIP: Add latest trend functionality

Browse files
Files changed (1) hide show
  1. 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! To help you identify the most recent trends, please specify "
267
- "the area or topic you are interested in. Enter your topic in Markdown format so that "
268
- "it can be properly parsed and analyzed."
269
  )
270
- stored_messages = gr.State([gr.ChatMessage(role="assistant", content=start_message)])
 
 
 
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",