bstraehle commited on
Commit
e27ef00
·
verified ·
1 Parent(s): 93eae1c

Update crew.py

Browse files
Files changed (1) hide show
  1. crew.py +9 -7
crew.py CHANGED
@@ -193,13 +193,15 @@ def run_crew(question, file_path):
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
 
 
193
  Raises:
194
  RuntimeError: If processing fails"""
195
  try:
196
+ print("###")
197
+ print(question)
198
+ print(file_path)
199
+ print("###")
200
+
201
+ #if file_path:
202
+ #df = read_file(file_path)
203
+ #question = question.split(" File path:")[0]
204
+ #question = f"Question: {question}\nFile data:\n{df.to_string()}"
205
 
206
  client = genai.Client(api_key=os.environ["GEMINI_API_KEY"])
207