Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -71,7 +71,7 @@ def polish(sentence: str, choice: str) -> str:
|
|
| 71 |
# --- Gradio UI ---
|
| 72 |
with gr.Blocks(title="English Grammar Polisher") as demo:
|
| 73 |
gr.Markdown("### English Grammar Polisher\nChoose FLAN-T5 (Google) or OPUS-MT (Helsinki-NLP).")
|
| 74 |
-
inp = gr.Textbox(lines=3, label="Input (English)", placeholder="Type an English sentence to correct.")
|
| 75 |
choice = gr.Dropdown(choices=MODEL_OPTIONS, value="FLAN-T5-base (Google)", label="Method")
|
| 76 |
btn = gr.Button("Oxford grammar polish")
|
| 77 |
out = gr.Textbox(label="Output")
|
|
|
|
| 71 |
# --- Gradio UI ---
|
| 72 |
with gr.Blocks(title="English Grammar Polisher") as demo:
|
| 73 |
gr.Markdown("### English Grammar Polisher\nChoose FLAN-T5 (Google) or OPUS-MT (Helsinki-NLP).")
|
| 74 |
+
inp = gr.Textbox(lines=3, label="Input (English) E.g. She go tomorrow buy two bread.", placeholder="Type an English sentence to correct.")
|
| 75 |
choice = gr.Dropdown(choices=MODEL_OPTIONS, value="FLAN-T5-base (Google)", label="Method")
|
| 76 |
btn = gr.Button("Oxford grammar polish")
|
| 77 |
out = gr.Textbox(label="Output")
|