Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,4 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
|
|
|
|
|
|
|
|
|
|
| 2 |
detailed_insights = st.sidebar.checkbox("Include Detailed Insights and Visualizations")
|
| 3 |
|
| 4 |
# Customization Options
|
|
@@ -102,19 +120,3 @@ if st.button("Generate Insights"):
|
|
| 102 |
|
| 103 |
except Exception as e:
|
| 104 |
st.error(f"Error: {e}")
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
|
|
|
|
| 1 |
+
import streamlit as st
|
| 2 |
+
from crewai import Agent, Task, Crew
|
| 3 |
+
import os
|
| 4 |
+
from langchain_groq import ChatGroq
|
| 5 |
+
from fpdf import FPDF
|
| 6 |
+
import pandas as pd
|
| 7 |
+
import plotly.express as px
|
| 8 |
+
import time
|
| 9 |
+
|
| 10 |
+
# Title and Sidebar
|
| 11 |
+
st.title("Business Consultant Application")
|
| 12 |
+
st.sidebar.markdown(
|
| 13 |
+
"Transform your business ideas into actionable strategies with tailored insights and in-depth analysis. "
|
| 14 |
+
"Make informed decisions and gain a competitive edge. Start generating your comprehensive business report now!"
|
| 15 |
+
)
|
| 16 |
|
| 17 |
+
# User Inputs
|
| 18 |
+
business = st.text_input('Business Focus Area', value="Artificial Intelligence")
|
| 19 |
+
stakeholder = st.text_input('Target Stakeholder Group', value="Executives")
|
| 20 |
detailed_insights = st.sidebar.checkbox("Include Detailed Insights and Visualizations")
|
| 21 |
|
| 22 |
# Customization Options
|
|
|
|
| 120 |
|
| 121 |
except Exception as e:
|
| 122 |
st.error(f"Error: {e}")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|