Dezzex2 commited on
Commit
8fb46dd
·
verified ·
1 Parent(s): 145fc8f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
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("Bharatiya Nyaya Sanhita(BNS) 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 Nyaya Sanhita Section: First, analyze the given input and determine which section of the Bharatiya Nyaya Sanhita (BNS) it fits into. Check input properly because some words may not match with Bharatiya Nyaya Sanhita terminology, so you still need to understand the context.
40
- 2. Register FIR: After determining the appropriate BNS 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 BNS section.
42
- 4. Punishment: Specify the punishment associated with the identified BNS 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 BNS, Bharatiya Nyaya 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>
 
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>