Update app.py
Browse files
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
|
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:
|