DrishtiSharma commited on
Commit
030db74
·
verified ·
1 Parent(s): 93b58b6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -13
app.py CHANGED
@@ -20,15 +20,11 @@ stakeholder = st.text_input('Enter Stakeholder', value="Patent Attorneys")
20
 
21
  # Advanced Options
22
  st.sidebar.subheader("Advanced Options")
23
-
24
- # Enable/Disable Advanced Features
25
  enable_advanced_analysis = st.sidebar.checkbox("Enable Advanced Analysis", value=True)
26
  enable_custom_visualization = st.sidebar.checkbox("Enable Custom Visualizations", value=True)
27
 
28
  # Optional Customization
29
  st.sidebar.subheader("Agent Customization")
30
-
31
- # Display customization section in a collapsible expander
32
  with st.sidebar.expander("Customize Agent Goals", expanded=False):
33
  enable_customization = st.checkbox("Enable Custom Goals")
34
  if enable_customization:
@@ -127,10 +123,6 @@ analyse = Task(
127
  agent=analyst
128
  )
129
 
130
- #=================
131
- # Execution
132
- #=================
133
-
134
  crew = Crew(
135
  agents=[planner, analyst, writer],
136
  tasks=[plan, analyse, write],
@@ -164,7 +156,6 @@ def create_visualizations(analyst_output):
164
  try:
165
  data = pd.DataFrame(analyst_output)
166
  st.markdown("### Advanced Visualization")
167
-
168
  fig = px.bar(data, x="Category", y="Values", title="Patent Trends by Category")
169
  st.plotly_chart(fig)
170
  except Exception as e:
@@ -220,7 +211,3 @@ if st.button("Generate Patent Insights"):
220
 
221
  except Exception as e:
222
  st.error(f"An error occurred during execution: {e}")
223
-
224
- # Add reference and credits in the sidebar
225
- st.sidebar.markdown("---")
226
- st.sidebar.markdown("### Reference:")
 
20
 
21
  # Advanced Options
22
  st.sidebar.subheader("Advanced Options")
 
 
23
  enable_advanced_analysis = st.sidebar.checkbox("Enable Advanced Analysis", value=True)
24
  enable_custom_visualization = st.sidebar.checkbox("Enable Custom Visualizations", value=True)
25
 
26
  # Optional Customization
27
  st.sidebar.subheader("Agent Customization")
 
 
28
  with st.sidebar.expander("Customize Agent Goals", expanded=False):
29
  enable_customization = st.checkbox("Enable Custom Goals")
30
  if enable_customization:
 
123
  agent=analyst
124
  )
125
 
 
 
 
 
126
  crew = Crew(
127
  agents=[planner, analyst, writer],
128
  tasks=[plan, analyse, write],
 
156
  try:
157
  data = pd.DataFrame(analyst_output)
158
  st.markdown("### Advanced Visualization")
 
159
  fig = px.bar(data, x="Category", y="Values", title="Patent Trends by Category")
160
  st.plotly_chart(fig)
161
  except Exception as e:
 
211
 
212
  except Exception as e:
213
  st.error(f"An error occurred during execution: {e}")