Spaces:
Runtime error
Runtime error
Commit
·
cc58543
1
Parent(s):
4aa35c9
Update app.py
Browse files
app.py
CHANGED
|
@@ -50,13 +50,17 @@ def generator(from_text):
|
|
| 50 |
|
| 51 |
with gr.Blocks() as demo:
|
| 52 |
with gr.Tab("Translator"):
|
| 53 |
-
gr.Markdown("
|
|
|
|
|
|
|
| 54 |
|
| 55 |
with gr.Row():
|
| 56 |
text_input1 = gr.Textbox(lines=4, placeholder="Enter sentence here...")
|
| 57 |
chinese = gr.Textbox(lines=4, placeholder="Chinese")
|
| 58 |
zh_button = gr.Button("RUN")
|
| 59 |
-
gr.Markdown("
|
|
|
|
|
|
|
| 60 |
|
| 61 |
with gr.Row():
|
| 62 |
text_input2 = gr.Textbox(lines=4, placeholder="Enter sentence here...")
|
|
@@ -64,14 +68,17 @@ with gr.Blocks() as demo:
|
|
| 64 |
en_button = gr.Button("RUN")
|
| 65 |
|
| 66 |
with gr.Tab("Gramachecker"):
|
| 67 |
-
gr.Markdown("
|
| 68 |
-
|
|
|
|
| 69 |
with gr.Row():
|
| 70 |
text_input3 = gr.Textbox(lines=4, placeholder="Enter sentence here...")
|
| 71 |
check = gr.Textbox(lines=4, placeholder="Grama Check")
|
| 72 |
check_button = gr.Button("RUN")
|
| 73 |
|
| 74 |
-
gr.Markdown("
|
|
|
|
|
|
|
| 75 |
with gr.Row():
|
| 76 |
text_input4 = gr.Textbox(lines=2, placeholder="Enter sentence here...")
|
| 77 |
txtgenerator = gr.Textbox(lines=6, placeholder="Text Generator")
|
|
@@ -84,7 +91,7 @@ with gr.Blocks() as demo:
|
|
| 84 |
|
| 85 |
check_button.click(gramacorrect, inputs=text_input3, outputs=check)
|
| 86 |
gen_button.click(generator, inputs=text_input4, outputs=txtgenerator)
|
| 87 |
-
demo.launch(
|
| 88 |
|
| 89 |
|
| 90 |
# %%
|
|
|
|
| 50 |
|
| 51 |
with gr.Blocks() as demo:
|
| 52 |
with gr.Tab("Translator"):
|
| 53 |
+
gr.Markdown("""
|
| 54 |
+
#### English to Chinese.
|
| 55 |
+
""")
|
| 56 |
|
| 57 |
with gr.Row():
|
| 58 |
text_input1 = gr.Textbox(lines=4, placeholder="Enter sentence here...")
|
| 59 |
chinese = gr.Textbox(lines=4, placeholder="Chinese")
|
| 60 |
zh_button = gr.Button("RUN")
|
| 61 |
+
gr.Markdown("""
|
| 62 |
+
#### Chinese to English.
|
| 63 |
+
""")
|
| 64 |
|
| 65 |
with gr.Row():
|
| 66 |
text_input2 = gr.Textbox(lines=4, placeholder="Enter sentence here...")
|
|
|
|
| 68 |
en_button = gr.Button("RUN")
|
| 69 |
|
| 70 |
with gr.Tab("Gramachecker"):
|
| 71 |
+
gr.Markdown("""
|
| 72 |
+
#### English grama checker.
|
| 73 |
+
""")
|
| 74 |
with gr.Row():
|
| 75 |
text_input3 = gr.Textbox(lines=4, placeholder="Enter sentence here...")
|
| 76 |
check = gr.Textbox(lines=4, placeholder="Grama Check")
|
| 77 |
check_button = gr.Button("RUN")
|
| 78 |
|
| 79 |
+
gr.Markdown("""
|
| 80 |
+
#### English text generator.
|
| 81 |
+
""")
|
| 82 |
with gr.Row():
|
| 83 |
text_input4 = gr.Textbox(lines=2, placeholder="Enter sentence here...")
|
| 84 |
txtgenerator = gr.Textbox(lines=6, placeholder="Text Generator")
|
|
|
|
| 91 |
|
| 92 |
check_button.click(gramacorrect, inputs=text_input3, outputs=check)
|
| 93 |
gen_button.click(generator, inputs=text_input4, outputs=txtgenerator)
|
| 94 |
+
demo.launch()
|
| 95 |
|
| 96 |
|
| 97 |
# %%
|