pathananas commited on
Commit
c5fa8f3
·
verified ·
1 Parent(s): 4c63eb9
Files changed (1) hide show
  1. model.py +0 -5
model.py CHANGED
@@ -87,10 +87,6 @@ Confidence: **{text_conf}%**
87
  try:
88
 
89
  # create image folder if not exists
90
- os.makedirs("saved_images", exist_ok=True)
91
- image_filename = f"img_{int(time.time()*1000)}.png"
92
- image_path = os.path.abspath(f"saved_images/{image_filename}")
93
- image.save(image_path)
94
 
95
  results = image_pipeline(image)
96
 
@@ -179,7 +175,6 @@ Confidence: **{audio_conf}%**
179
  "timestamp": datetime.now().strftime("%Y-%m-%d %H:%M:%S"),
180
  "text": text,
181
  "image": image_label,
182
- "image_path": image_path,
183
  "audio": audio_label,
184
  "transcription": transcription,
185
  "fusion_score": round(fusion_score,2)
 
87
  try:
88
 
89
  # create image folder if not exists
 
 
 
 
90
 
91
  results = image_pipeline(image)
92
 
 
175
  "timestamp": datetime.now().strftime("%Y-%m-%d %H:%M:%S"),
176
  "text": text,
177
  "image": image_label,
 
178
  "audio": audio_label,
179
  "transcription": transcription,
180
  "fusion_score": round(fusion_score,2)