BroBro87 commited on
Commit
37e3995
·
verified ·
1 Parent(s): beeefa7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -8
app.py CHANGED
@@ -42,14 +42,7 @@ def find_hackernews_posts(message,history):
42
  )
43
 
44
  result = crew.kickoff()
45
-
46
- # Parse the result and format it for Gradio
47
- formatted_result = "Here are some relevant Hacker News posts:\n\n"
48
- for post in result.split('\n'):
49
- if post.strip():
50
- formatted_result += f"• {post.strip()}\n"
51
-
52
- return formatted_result
53
 
54
  chat_interface = gr.ChatInterface(
55
  fn=find_hackernews_posts,
 
42
  )
43
 
44
  result = crew.kickoff()
45
+ return result
 
 
 
 
 
 
 
46
 
47
  chat_interface = gr.ChatInterface(
48
  fn=find_hackernews_posts,