Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
import os
|
2 |
from dotenv import load_dotenv
|
3 |
-
import
|
4 |
from crewai import Agent, Task, Crew
|
5 |
# Importing crewAI tools
|
6 |
from crewai_tools import (
|
@@ -75,14 +75,11 @@ def run_crew():
|
|
75 |
with open('research_results/company_recommendations.md', 'r') as f:
|
76 |
return f.read()
|
77 |
|
78 |
-
#
|
79 |
-
|
80 |
-
|
81 |
-
inputs=[],
|
82 |
-
outputs=gr.Textbox(label="Results"),
|
83 |
-
title="Climate Tech Company Finder",
|
84 |
-
description="Click to analyze climate strategy and find relevant companies."
|
85 |
-
)
|
86 |
|
87 |
-
|
88 |
-
|
|
|
|
|
|
1 |
import os
|
2 |
from dotenv import load_dotenv
|
3 |
+
import streamlit as st
|
4 |
from crewai import Agent, Task, Crew
|
5 |
# Importing crewAI tools
|
6 |
from crewai_tools import (
|
|
|
75 |
with open('research_results/company_recommendations.md', 'r') as f:
|
76 |
return f.read()
|
77 |
|
78 |
+
# Streamlit interface
|
79 |
+
st.title("Climate Tech Company Finder")
|
80 |
+
st.write("Click to analyze climate strategy and find relevant companies.")
|
|
|
|
|
|
|
|
|
|
|
81 |
|
82 |
+
# Button to trigger the crew
|
83 |
+
if st.button("Run Analysis"):
|
84 |
+
result = run_crew()
|
85 |
+
st.text_area("Results", result, height=300)
|