rairo commited on
Commit
13d9d91
·
verified ·
1 Parent(s): 9151f8a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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.write(report)
 
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)