Update app.py
Browse files
app.py
CHANGED
@@ -221,25 +221,26 @@ def generate_rephrases_gemini(text, language, problem):
|
|
221 |
|
222 |
|
223 |
with gr.Blocks() as demo:
|
224 |
-
gr.Markdown("English Transliteration Tool")
|
225 |
-
with gr.
|
226 |
-
with gr.
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
with gr.
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
|
|
243 |
|
244 |
|
245 |
demo.launch(auth=(os.environ.get("USERNAME"), os.environ.get("PASSWORD")))
|
|
|
221 |
|
222 |
|
223 |
with gr.Blocks() as demo:
|
224 |
+
gr.Markdown("# English Transliteration Tool")
|
225 |
+
with gr.Tab("Transliteration"):
|
226 |
+
with gr.Row():
|
227 |
+
with gr.Column():
|
228 |
+
input_text = gr.Textbox(label="Input text", info="Please enter English text.")
|
229 |
+
full_transliteration = gr.Checkbox(label="Full transliteration", value=True)
|
230 |
+
output_text = gr.Textbox(label="Output text")
|
231 |
+
transliterate = gr.Button("Submit")
|
232 |
+
transliterate.click(dubpro_english_transliteration, [input_text, full_transliteration], output_text)
|
233 |
+
|
234 |
+
with gr.Tab("Rephraser Tool"):
|
235 |
+
with gr.Row():
|
236 |
+
rephrase_text = gr.Textbox(label="Input text", info="Please enter text.")
|
237 |
+
language = gr.Dropdown(["English", "Hindi"], value="Hindi")
|
238 |
+
solving_for = gr.Dropdown(["Gap", "Overflow"], value="Overflow", label="Solving for:")
|
239 |
+
with gr.Row():
|
240 |
+
word_count = gr.Textbox(label="Word count")
|
241 |
+
rephrased_text = gr.Textbox(label="Output text")
|
242 |
+
rephrase = gr.Button("Submit")
|
243 |
+
rephrase.click(generate_rephrases_gemini, [rephrase_text, language, solving_for], [rephrased_text, word_count])
|
244 |
|
245 |
|
246 |
demo.launch(auth=(os.environ.get("USERNAME"), os.environ.get("PASSWORD")))
|