Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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,
|
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,
|