Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -126,6 +126,7 @@ if tabs =='Chat':
|
|
| 126 |
st.write(answer)
|
| 127 |
|
| 128 |
elif tabs == 'Reports':
|
|
|
|
| 129 |
st.header("Reports")
|
| 130 |
prompt = """
|
| 131 |
You are an expert business analyst. Analyze the following data and generate a comprehensive and insightful business report, including appropriate key perfomance indicators and reccomendations.
|
|
@@ -135,4 +136,4 @@ data:
|
|
| 135 |
|
| 136 |
response = model.generate_content(prompt)
|
| 137 |
report = response.text
|
| 138 |
-
st.
|
|
|
|
| 126 |
st.write(answer)
|
| 127 |
|
| 128 |
elif tabs == 'Reports':
|
| 129 |
+
df = pd.read_csv(uploaded_file)
|
| 130 |
st.header("Reports")
|
| 131 |
prompt = """
|
| 132 |
You are an expert business analyst. Analyze the following data and generate a comprehensive and insightful business report, including appropriate key perfomance indicators and reccomendations.
|
|
|
|
| 136 |
|
| 137 |
response = model.generate_content(prompt)
|
| 138 |
report = response.text
|
| 139 |
+
st.markdown(report)
|