Spaces:
Runtime error
Runtime error
Upload folder using huggingface_hub
Browse files- gradio_app.py +3 -1
gradio_app.py
CHANGED
@@ -119,7 +119,9 @@ def predict_statutes(fir_text,language):
|
|
119 |
return "Please enter the FIR text to predict statutes."
|
120 |
|
121 |
# Gradio app layout
|
122 |
-
demo = gr.Interface(
|
|
|
|
|
123 |
fn=predict_statutes,
|
124 |
inputs=[gr.Textbox(label="Enter the FIR:", placeholder="Type or paste the FIR here...", lines=10),
|
125 |
gr.Dropdown(label="Select Language", choices=["English", "Hindi"], value="English"),
|
|
|
119 |
return "Please enter the FIR text to predict statutes."
|
120 |
|
121 |
# Gradio app layout
|
122 |
+
demo = gr.Interface(
|
123 |
+
title='Statute Prediction',
|
124 |
+
description='Uses AI to analyze the FIR content and intelligently predict applicable statutes',
|
125 |
fn=predict_statutes,
|
126 |
inputs=[gr.Textbox(label="Enter the FIR:", placeholder="Type or paste the FIR here...", lines=10),
|
127 |
gr.Dropdown(label="Select Language", choices=["English", "Hindi"], value="English"),
|