onkar-waghmode commited on
Commit
1e6bead
·
1 Parent(s): 9336d99
Files changed (1) hide show
  1. app.py +0 -2
app.py CHANGED
@@ -77,7 +77,6 @@ def paraphrase_text(text: str, max_length: int = 512, num_beams: int = 4,
77
  return result.strip()
78
 
79
  except Exception as e:
80
- logger.warning(f"Paraphrasing failed: {e}. Returning original text.")
81
  return text
82
 
83
  def paraphrase_long_text(text: str, max_length: int = 512, num_beams: int = 4,
@@ -669,7 +668,6 @@ def calculate_similarity(text1: str, text2: str) -> float:
669
  similarity = round(similarity*100, 2)
670
  return similarity
671
  except Exception as e:
672
- logger.error(f"Similarity calculation failed: {e}")
673
  return 0.0
674
 
675
 
 
77
  return result.strip()
78
 
79
  except Exception as e:
 
80
  return text
81
 
82
  def paraphrase_long_text(text: str, max_length: int = 512, num_beams: int = 4,
 
668
  similarity = round(similarity*100, 2)
669
  return similarity
670
  except Exception as e:
 
671
  return 0.0
672
 
673