Spaces:
Sleeping
Sleeping
Atharva Chauthaiwale
commited on
Commit
·
c2d4ac9
1
Parent(s):
ff1c561
Gradio interpret by case title
Browse files
main.py
CHANGED
@@ -5,14 +5,14 @@ from slack_bolt.adapter.fastapi import SlackRequestHandler
|
|
5 |
import os
|
6 |
import logging
|
7 |
from download_judgements import fetch_case_names
|
8 |
-
from interpret_judgement import interpret_judgement
|
9 |
|
10 |
app = FastAPI()
|
11 |
|
12 |
# io = gr.Interface(lambda x: "Hello, " + x + "!", "textbox", "textbox")
|
13 |
|
14 |
io = gr.Interface(
|
15 |
-
fn=
|
16 |
inputs=[
|
17 |
gr.Dropdown(
|
18 |
fetch_case_names(), label="Chose a case", info="Chose a case from latest Supreme Court judgements"
|
|
|
5 |
import os
|
6 |
import logging
|
7 |
from download_judgements import fetch_case_names
|
8 |
+
from interpret_judgement import interpret_judgement, interpret_by_case_title
|
9 |
|
10 |
app = FastAPI()
|
11 |
|
12 |
# io = gr.Interface(lambda x: "Hello, " + x + "!", "textbox", "textbox")
|
13 |
|
14 |
io = gr.Interface(
|
15 |
+
fn=interpret_by_case_title,
|
16 |
inputs=[
|
17 |
gr.Dropdown(
|
18 |
fetch_case_names(), label="Chose a case", info="Chose a case from latest Supreme Court judgements"
|