Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -31,13 +31,14 @@ def process_text(input_text):
|
|
| 31 |
corrected_output = correct_grammar(java_output)
|
| 32 |
return corrected_output
|
| 33 |
|
| 34 |
-
# Gradio interface
|
| 35 |
iface = gr.Interface(
|
| 36 |
fn=process_text,
|
| 37 |
inputs="text",
|
| 38 |
outputs="text",
|
| 39 |
title="Text Processing App",
|
| 40 |
-
description="Enter text to process it through Java and correct grammar using LanguageTool."
|
|
|
|
| 41 |
)
|
| 42 |
|
| 43 |
if __name__ == "__main__":
|
|
|
|
| 31 |
corrected_output = correct_grammar(java_output)
|
| 32 |
return corrected_output
|
| 33 |
|
| 34 |
+
# Gradio interface without flagging
|
| 35 |
iface = gr.Interface(
|
| 36 |
fn=process_text,
|
| 37 |
inputs="text",
|
| 38 |
outputs="text",
|
| 39 |
title="Text Processing App",
|
| 40 |
+
description="Enter text to process it through Java and correct grammar using LanguageTool.",
|
| 41 |
+
allow_flagging='never' # Disable flagging feature
|
| 42 |
)
|
| 43 |
|
| 44 |
if __name__ == "__main__":
|