Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,8 +11,8 @@ def main():
|
|
| 11 |
# Create the Gradio interface
|
| 12 |
interface = gr.Interface(
|
| 13 |
fn=grammar_corrector, # Function to correct the grammar
|
| 14 |
-
inputs=gr.
|
| 15 |
-
outputs=gr.
|
| 16 |
title="Grammar Correction App", # Title for the app
|
| 17 |
description="Enter a sentence and click 'Submit' to see the corrected version.", # Brief description
|
| 18 |
)
|
|
|
|
| 11 |
# Create the Gradio interface
|
| 12 |
interface = gr.Interface(
|
| 13 |
fn=grammar_corrector, # Function to correct the grammar
|
| 14 |
+
inputs=gr.Textbox(lines=2, placeholder="Enter a sentence..."), # Input box for sentence
|
| 15 |
+
outputs=gr.Textbox(label="Corrected Sentence"), # Output box for corrected sentence
|
| 16 |
title="Grammar Correction App", # Title for the app
|
| 17 |
description="Enter a sentence and click 'Submit' to see the corrected version.", # Brief description
|
| 18 |
)
|