Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -30,18 +30,18 @@ load_dotenv()
|
|
30 |
groq_api_key=os.getenv('GROQ_API_KEY')
|
31 |
os.environ["GOOGLE_API_KEY"]=os.getenv("GOOGLE_API_KEY")
|
32 |
|
33 |
-
st.title("
|
34 |
|
35 |
llm=ChatGroq(groq_api_key=groq_api_key,
|
36 |
model_name="Llama3-8b-8192")
|
37 |
prompt=ChatPromptTemplate.from_template(
|
38 |
"""
|
39 |
-
1. Check
|
40 |
-
2. Register FIR: After determining the appropriate
|
41 |
-
3. Outline Procedure: Provide a brief outline of the procedure that will follow after the FIR registration, based on the identified
|
42 |
-
4. Punishment: Specify the punishment associated with the identified
|
43 |
5. Additional Recommendations: Suggest any specific actions or precautions that the police should take based on the nature of the case.
|
44 |
-
In final response Don't use IPC or indian penal code always use
|
45 |
<context>
|
46 |
{context}
|
47 |
<context>
|
|
|
30 |
groq_api_key=os.getenv('GROQ_API_KEY')
|
31 |
os.environ["GOOGLE_API_KEY"]=os.getenv("GOOGLE_API_KEY")
|
32 |
|
33 |
+
st.title("BHARATIYA NAGARIK SURAKSHA SANHITA(BNSS) LLM")
|
34 |
|
35 |
llm=ChatGroq(groq_api_key=groq_api_key,
|
36 |
model_name="Llama3-8b-8192")
|
37 |
prompt=ChatPromptTemplate.from_template(
|
38 |
"""
|
39 |
+
1. Check BHARATIYA NAGARIK SURAKSHA SANHITA Section: First, analyze the given input and determine which section of the BHARATIYA NAGARIK SURAKSHA SANHITA (BNSS) it fits into. Check input properly because some words may not match with BHARATIYA NAGARIK SURAKSHA SANHITA terminology, so you still need to understand the context.
|
40 |
+
2. Register FIR: After determining the appropriate BNSS section, confirm the registration of the First Information Report (FIR) under that section.
|
41 |
+
3. Outline Procedure: Provide a brief outline of the procedure that will follow after the FIR registration, based on the identified BNSS section.
|
42 |
+
4. Punishment: Specify the punishment associated with the identified BNSS section.
|
43 |
5. Additional Recommendations: Suggest any specific actions or precautions that the police should take based on the nature of the case.
|
44 |
+
In final response Don't use IPC or indian penal code always use BNSS, BHARATIYA NAGARIK SURAKSHA SANHITA and you will only provide in details: {input}, Crime input, FIR Register under which section, Outline Procedure, Punishment, and Additional Recommendations.
|
45 |
<context>
|
46 |
{context}
|
47 |
<context>
|