bstraehle commited on
Commit
7ad3b1e
·
verified ·
1 Parent(s): 1de3716

Update crew.py

Browse files
Files changed (1) hide show
  1. crew.py +4 -5
crew.py CHANGED
@@ -193,14 +193,13 @@ def run_crew(question, file_path):
193
  Raises:
194
  RuntimeError: If processing fails"""
195
  try:
196
- print("###")
197
- print(question)
198
- print(file_path)
199
- print("###")
200
  if file_path:
201
  df = read_file(file_path)
202
- question = f"You don't have to read te file, the data are provided below.\nQuestion:\n{question}\nData:\n{df.to_string()}"
 
 
203
  print(question)
 
204
 
205
  client = genai.Client(api_key=os.environ["GEMINI_API_KEY"])
206
 
 
193
  Raises:
194
  RuntimeError: If processing fails"""
195
  try:
 
 
 
 
196
  if file_path:
197
  df = read_file(file_path)
198
+ question = question.split(" File path:")[0]
199
+ question = f"Question: {question}\nFile data:\n{df.to_string()}"
200
+ print("###")
201
  print(question)
202
+ print("###")
203
 
204
  client = genai.Client(api_key=os.environ["GEMINI_API_KEY"])
205