arsiba commited on
Commit
3f8e148
Β·
1 Parent(s): 53978f6

feat: add bestter description

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -115,7 +115,7 @@ demo = gr.Interface(
115
  gr.Textbox(lines=1, label="What is your question?"),
116
  ],
117
  additional_inputs=[
118
- gr.Slider(1, 10, value=8, step=1, label="Top-K Documents"),
119
  gr.Slider(0.1, 1.0, value=0.6, step=0.05, label="Temperature"),
120
  gr.Slider(64, 1024, value=512, step=64, label="Max Answer Length")
121
  ],
@@ -129,7 +129,11 @@ demo = gr.Interface(
129
  outputs_chunks
130
  ],
131
  title="GDPR Legal Assistant",
132
- description="Ask any question about GDPR or EDPB documents.",
 
 
 
 
133
  allow_flagging="never",
134
  fill_width=True,
135
  )
 
115
  gr.Textbox(lines=1, label="What is your question?"),
116
  ],
117
  additional_inputs=[
118
+ gr.Slider(1, 10, value=7, step=1, label="Top-K Documents"),
119
  gr.Slider(0.1, 1.0, value=0.6, step=0.05, label="Temperature"),
120
  gr.Slider(64, 1024, value=512, step=64, label="Max Answer Length")
121
  ],
 
129
  outputs_chunks
130
  ],
131
  title="GDPR Legal Assistant",
132
+ description=
133
+ "Ask any question about GDPR or EDPB documents. \nExample for the Documents field:\n'Documents regarding the EDPB’s interpretation of data subject rights under the GDPR, especially the right to access, right to rectification, and right to erasure.\
134
+ Clarification on how organizations should respond to data subject requests and the required timelines for compliance.' \
135
+ \n Example Question: \n\
136
+ ' How should organizations respond to data subject requests for access, rectification, and erasure, and what are the required timelines for each?'",
137
  allow_flagging="never",
138
  fill_width=True,
139
  )