Update app.py
Browse files
app.py
CHANGED
@@ -81,10 +81,13 @@ def gradio_interface(image, prompt):
|
|
81 |
# outputs=[gr.Label(), gr.Label(), gr.Textbox(), gr.Textbox()],
|
82 |
# live=True
|
83 |
# )
|
84 |
-
|
85 |
interface = gr.Interface(
|
86 |
fn=gradio_interface,
|
87 |
-
inputs=
|
|
|
|
|
|
|
88 |
outputs=[gr.Text(label="Grade"), gr.Number(label="Similarity Score (%)"), gr.Text(label="Feedback")],
|
89 |
title="Automated Grading System",
|
90 |
description="Upload an image of your answer sheet to get a grade from 1 to 5, similarity score, and feedback based on the model answer.",
|
|
|
81 |
# outputs=[gr.Label(), gr.Label(), gr.Textbox(), gr.Textbox()],
|
82 |
# live=True
|
83 |
# )
|
84 |
+
language_choices = pytesseract.get_languages()
|
85 |
interface = gr.Interface(
|
86 |
fn=gradio_interface,
|
87 |
+
inputs=[
|
88 |
+
gr.Image(type="filepath", label="Input"),
|
89 |
+
gr.CheckboxGroup(language_choices, type="value", value=['eng'], label='language')
|
90 |
+
],
|
91 |
outputs=[gr.Text(label="Grade"), gr.Number(label="Similarity Score (%)"), gr.Text(label="Feedback")],
|
92 |
title="Automated Grading System",
|
93 |
description="Upload an image of your answer sheet to get a grade from 1 to 5, similarity score, and feedback based on the model answer.",
|