deepsync commited on
Commit
d980473
1 Parent(s): 8d8cdf7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -132,10 +132,12 @@ def generate_rephrases_gemini(text, language, problem):
132
  output_text = response["candidates"][0]["content"]["parts"][0]["text"]
133
 
134
  texts = list(map(lambda x: x.replace("-", "").strip(), output_text.split("\n")))
 
 
135
 
136
  wc = f"Original Word Count: {len(text.split())}\nRephrased Word Count: {len(texts.split())}"
137
 
138
- return "\n".join(texts), wc
139
 
140
 
141
  with gr.Blocks() as demo:
 
132
  output_text = response["candidates"][0]["content"]["parts"][0]["text"]
133
 
134
  texts = list(map(lambda x: x.replace("-", "").strip(), output_text.split("\n")))
135
+ texts = "\n".join(texts)
136
+ texts = dubpro_english_transliteration(texts)
137
 
138
  wc = f"Original Word Count: {len(text.split())}\nRephrased Word Count: {len(texts.split())}"
139
 
140
+ return texts, wc
141
 
142
 
143
  with gr.Blocks() as demo: