AItool commited on
Commit
080e470
·
verified ·
1 Parent(s): 6459433

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -2
app.py CHANGED
@@ -69,8 +69,16 @@ def polish(sentence: str, choice: str) -> str:
69
  return "Unknown option."
70
 
71
  # --- Gradio UI ---
72
- with gr.Blocks(title="English Grammar Polisher (CPU enabled)") as demo:
73
- gr.Markdown("### English Grammar Polisher\nChoose Helsinki-NLP or FLAN-T5 (Google).")
 
 
 
 
 
 
 
 
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="Helsinki-NLP", label="Method")
76
  btn = gr.Button("Oxford grammar polish")
 
69
  return "Unknown option."
70
 
71
  # --- Gradio UI ---
72
+ with gr.Blocks(title="HizkuntzLagun: English Fixer (CPU enabled)") as demo:
73
+ gr.Markdown("### HizkuntzLagun: English Fixer\n")
74
+ gr.Markdown(
75
+ """
76
+ > ⚡ **Note:**
77
+ > This tool runs on free, CPU-friendly AI models.
78
+ > It’s designed to be fast and accessible — not perfect.
79
+ > Expect quick corrections, not deep grammar analysis.
80
+ > Drop in anytime — a quick fix a day keeps awkward grammar away.
81
+ """
82
  inp = gr.Textbox(lines=3, label="Input (English) E.g. She go tomorrow buy two bread.", placeholder="Type an English sentence to correct.")
83
  choice = gr.Dropdown(choices=MODEL_OPTIONS, value="Helsinki-NLP", label="Method")
84
  btn = gr.Button("Oxford grammar polish")