Spaces:
Runtime error
Runtime error
Download app.py from Logisx/EssayEvaluation: direct link, hf CLI and curl.
- Browser
- Download file 899 Bytes
-
https://huggingface.co/spaces/Logisx/EssayEvaluation/resolve/main/app.py
- Command line
-
hf download hf://spaces/Logisx/EssayEvaluation/app.py
-
curl -L -o app.py https://huggingface.co/spaces/Logisx/EssayEvaluation/resolve/main/app.py
899 Bytes
| import gradio as gr | |
| from src.essay_evaluation import EssayEvaluation | |
| from src.logger import logger | |
| demo = gr.Interface( | |
| title="Essay Evaluation Assistant 📋", | |
| description="""Master English with our AI Essay Assistant!\n | |
| Elevate your writing skills or prepare for IELTS and TOEFL. Get precise feedback to polish your skills and conquer every challenge!""", | |
| fn = EssayEvaluation.evaluate, | |
| inputs = [ | |
| gr.Radio(["IELTS", "TOEFL", "General"], label="Essay type", info="What type of essay do you have?"), | |
| gr.Textbox(label="Essay topic (optional)", placeholder="Enter your essay topic here...", container=True), | |
| gr.Textbox(label="Essay text", placeholder="Enter your essay here...", container=True) | |
| ], | |
| outputs = [ | |
| gr.Textbox(label="Results & Comments") | |
| ], | |
| allow_flagging="never" | |
| ) | |
| if __name__ == "__main__": | |
| demo.launch() |