BroBro87 commited on
Commit
1dbdead
·
verified ·
1 Parent(s): e003fec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -5
app.py CHANGED
@@ -42,13 +42,9 @@ def find_hackernews_posts(message,history):
42
  )
43
 
44
  result = crew.kickoff()
45
- formatted_result = "Here are some relevant Hacker News posts:\n\n"
46
- for post in result.raw.split('\n'):
47
- if post.strip():
48
- formatted_result += f"• {post.strip()}\n"
49
 
50
  # Return the result in the format expected by the Chatbot component
51
- return [(message, formatted_result)]
52
 
53
  chat_interface = gr.ChatInterface(
54
  fn=find_hackernews_posts,
 
42
  )
43
 
44
  result = crew.kickoff()
 
 
 
 
45
 
46
  # Return the result in the format expected by the Chatbot component
47
+ return [(message, result.raw)]
48
 
49
  chat_interface = gr.ChatInterface(
50
  fn=find_hackernews_posts,