Muhammad Anas Akhtar commited on
Commit
36ba936
·
verified ·
1 Parent(s): 8f3f3ee

Updated app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -8,7 +8,7 @@ Text_summary = pipeline("summarization", model="facebook/bart-large-cnn", torch_
8
  # Define a function to estimate token count from word count
9
  def estimate_tokens(word_count):
10
  # Approximate tokens as 1.5 times the word count
11
- return int(word_count * 1.5)
12
 
13
  # Define the summarization function
14
  def summary(input, word_count):
 
8
  # Define a function to estimate token count from word count
9
  def estimate_tokens(word_count):
10
  # Approximate tokens as 1.5 times the word count
11
+ return int(word_count * 1)
12
 
13
  # Define the summarization function
14
  def summary(input, word_count):