DeepthiVJ1 commited on
Commit
65afb18
·
verified ·
1 Parent(s): bf8ff29

Re-upload files to trigger rebuild and ensure google-genai installation

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -164,12 +164,12 @@ def full_car_inspection(full_vehicle=None, body=None, w1=None, w2=None, engine=N
164
  for idx,img in enumerate(imgs_list,1):
165
  report = part_agent(part,img)
166
  part_reports[f"{part}_{idx}"] = report
167
- rating_match = re.search(r"(\d+(\.\d+)?)", report)
168
  rating = float(rating_match.group(1)) if rating_match else None
169
  rows.append([part,f"{part}_{idx}",rating,report])
170
  df_parts = pd.DataFrame(rows, columns=["Part","Image","Rating","Report"])
171
  overall_summary = supervisor_agent(part_reports)
172
- rating_match = re.search(r"overall numeric rating[:]*\s*(\\d+)", overall_summary.lower())
173
  emoji=""
174
  if rating_match:
175
  num_rating = int(rating_match.group(1))
@@ -210,4 +210,4 @@ with gr.Blocks() as demo:
210
  outputs=[part_table, vehicle_table, summary_box]
211
  )
212
 
213
- demo.launch(share=True, debug=True)
 
164
  for idx,img in enumerate(imgs_list,1):
165
  report = part_agent(part,img)
166
  part_reports[f"{part}_{idx}"] = report
167
+ rating_match = re.search(r"(\\d+(\.\\d+)?)", report)
168
  rating = float(rating_match.group(1)) if rating_match else None
169
  rows.append([part,f"{part}_{idx}",rating,report])
170
  df_parts = pd.DataFrame(rows, columns=["Part","Image","Rating","Report"])
171
  overall_summary = supervisor_agent(part_reports)
172
+ rating_match = re.search(r"overall numeric rating[:]*\\s*(\\d+)", overall_summary.lower())
173
  emoji=""
174
  if rating_match:
175
  num_rating = int(rating_match.group(1))
 
210
  outputs=[part_table, vehicle_table, summary_box]
211
  )
212
 
213
+ demo.launch(share=True, debug=True) # Added a timestamp to force commit: 2024-07-29-14-30-00