Ayushnangia commited on
Commit
57b1a45
1 Parent(s): d4613aa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -70,7 +70,7 @@ def process_text_in_chunks(text, process_function, max_chunk_size=256):
70
  processed_text += " " # Add space after each processed sentence
71
 
72
  return processed_text.strip()
73
- @spaces.GPU(duration=20)
74
  def greet(img, apply_grammar_correction, apply_spell_check,lang_of_input):
75
 
76
  if (lang_of_input=="Hindi"):
@@ -167,7 +167,7 @@ def split_text_into_batches(text, max_tokens_per_batch):
167
  batches.append(current_batch.strip()) # Add the last batch
168
  return batches
169
 
170
- @spaces.GPU(duration=20)
171
  def run_t2tt(file_uploader , input_text: str, source_language: str, target_language: str) -> (str, bytes):
172
  if file_uploader is not None:
173
  with open(file_uploader, 'r') as file:
 
70
  processed_text += " " # Add space after each processed sentence
71
 
72
  return processed_text.strip()
73
+ @spaces.GPU(duration=60)
74
  def greet(img, apply_grammar_correction, apply_spell_check,lang_of_input):
75
 
76
  if (lang_of_input=="Hindi"):
 
167
  batches.append(current_batch.strip()) # Add the last batch
168
  return batches
169
 
170
+ @spaces.GPU(duration=60)
171
  def run_t2tt(file_uploader , input_text: str, source_language: str, target_language: str) -> (str, bytes):
172
  if file_uploader is not None:
173
  with open(file_uploader, 'r') as file: