walaa2022 commited on
Commit
4065566
·
verified ·
1 Parent(s): 5957074

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -195,7 +195,7 @@ def get_runway_analysis(financial_data):
195
  Calculate and explain their runway, financial health, and recommendations in a concise paragraph.
196
  """
197
 
198
- model = genai.GenerativeModel('gemini-pro')
199
  response = model.generate_content(prompt)
200
 
201
  return response.text
@@ -216,7 +216,7 @@ def get_decision_analysis(question, financial_data):
216
  Provide specific recommendations in 3-4 concise sentences.
217
  """
218
 
219
- model = genai.GenerativeModel('gemini-pro')
220
  response = model.generate_content(prompt)
221
 
222
  return response.text
@@ -240,7 +240,7 @@ def get_fraud_analysis(transactions_df):
240
  Keep your response to 4-5 concise sentences focused on the most concerning issues.
241
  """
242
 
243
- model = genai.GenerativeModel('gemini-pro')
244
  response = model.generate_content(prompt)
245
 
246
  return response.text
@@ -264,7 +264,7 @@ def get_advisory_guidance(question, financial_data):
264
  Include timelines and metrics where relevant.
265
  """
266
 
267
- model = genai.GenerativeModel('gemini-pro')
268
  response = model.generate_content(prompt)
269
 
270
  return response.text
 
195
  Calculate and explain their runway, financial health, and recommendations in a concise paragraph.
196
  """
197
 
198
+ model = genai.GenerativeModel('gemini')
199
  response = model.generate_content(prompt)
200
 
201
  return response.text
 
216
  Provide specific recommendations in 3-4 concise sentences.
217
  """
218
 
219
+ model = genai.GenerativeModel('gemini')
220
  response = model.generate_content(prompt)
221
 
222
  return response.text
 
240
  Keep your response to 4-5 concise sentences focused on the most concerning issues.
241
  """
242
 
243
+ model = genai.GenerativeModel('gemini')
244
  response = model.generate_content(prompt)
245
 
246
  return response.text
 
264
  Include timelines and metrics where relevant.
265
  """
266
 
267
+ model = genai.GenerativeModel('gemini')
268
  response = model.generate_content(prompt)
269
 
270
  return response.text