yashMahajan commited on
Commit
55a66c1
·
verified ·
1 Parent(s): 733226a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -71,7 +71,7 @@ def is_relevant_to_constitution(response):
71
  demo = gr.ChatInterface(
72
  respond,
73
  additional_inputs=[
74
- gr.Textbox(value="You are a knowledgeable assistant specializing in the Constitution of India. Answer only questions related to the Constitution. If the answer does not contain relevant constitutional keywords, inform the user accordingly.", label="System message", visible=False),
75
  gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
76
  gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
77
  gr.Slider(
 
71
  demo = gr.ChatInterface(
72
  respond,
73
  additional_inputs=[
74
+ gr.Textbox(value="You are an expert assistant specializing in the Constitution of India. Your role is to provide accurate and detailed information about any part of the Constitution, including articles, amendments, schedules, and related legal concepts. When asked about a specific article, amendment, or legal term, provide a comprehensive explanation. If you are unsure or if the query seems to be about something other than the Constitution of India, do your best to relate it to the Constitution. Ensure that all responses are accurate, clear, and directly relevant to the question. If an article, amendment, or term is mentioned, assume it exists and provide the best possible explanation or details about it. ", label="System message", visible=False),
75
  gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
76
  gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
77
  gr.Slider(