Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -124,13 +124,15 @@ elif tabs == 'Reports':
|
|
| 124 |
You are an expert business analyst. Analyze the following data and generate a comprehensive and insightful business report, including appropriate key perfomance indicators and recommendations.
|
| 125 |
|
| 126 |
data:
|
| 127 |
-
""" + str(filtered_df.to_json(orient='records'))
|
| 128 |
|
| 129 |
response = model.generate_content(prompt)
|
| 130 |
-
response2 = generateResponse(filtered_df, "pie chart of number of hours by
|
| 131 |
-
response3 = generateResponse(filtered_df, "bar chart of of most popular
|
| 132 |
report = response.text
|
| 133 |
st.markdown(report)
|
|
|
|
|
|
|
| 134 |
# Display the generated images
|
| 135 |
st.success("Report Generated!")
|
| 136 |
else:
|
|
|
|
| 124 |
You are an expert business analyst. Analyze the following data and generate a comprehensive and insightful business report, including appropriate key perfomance indicators and recommendations.
|
| 125 |
|
| 126 |
data:
|
| 127 |
+
""" + str(filtered_df.to_json(orient='records'))
|
| 128 |
|
| 129 |
response = model.generate_content(prompt)
|
| 130 |
+
response2 = generateResponse(filtered_df, "pie chart of number of hours by incubator")
|
| 131 |
+
response3 = generateResponse(filtered_df, "bar chart of of most popular interventions")
|
| 132 |
report = response.text
|
| 133 |
st.markdown(report)
|
| 134 |
+
st.markdown(response2)
|
| 135 |
+
st.markdown(response3)
|
| 136 |
# Display the generated images
|
| 137 |
st.success("Report Generated!")
|
| 138 |
else:
|