naufalso commited on
Commit
c773e33
·
1 Parent(s): 297558b

Add disclaimer

Browse files
Files changed (1) hide show
  1. app.py +9 -2
app.py CHANGED
@@ -169,13 +169,20 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
169
  slider_tokens = gr.Slider(minimum=1, maximum=4096, value=1024, step=1, label="Max New Tokens")
170
  slider_top_p = gr.Slider(minimum=0.1, maximum=1.0, value=0.9, label="Top-P")
171
 
172
- # Note: We disable multimodal=True here implicitly by not setting it,
173
- # but Gradio might still allow uploads. Our code now handles/ignores them safely.
174
  gr.ChatInterface(
175
  fn=chat_function,
176
  additional_inputs=[system_prompt, slider_tokens, slider_temp, slider_top_p]
177
  )
178
 
 
 
 
 
 
 
 
 
179
  with gr.Tab("📝 Citation & Attribution"):
180
  gr.Markdown("""
181
  ### Authors
 
169
  slider_tokens = gr.Slider(minimum=1, maximum=4096, value=1024, step=1, label="Max New Tokens")
170
  slider_top_p = gr.Slider(minimum=0.1, maximum=1.0, value=0.9, label="Top-P")
171
 
172
+ # Chat Interface
 
173
  gr.ChatInterface(
174
  fn=chat_function,
175
  additional_inputs=[system_prompt, slider_tokens, slider_temp, slider_top_p]
176
  )
177
 
178
+ # --- WARNING / DISCLAIMER ---
179
+ gr.Markdown(
180
+ "<div style='text-align: center; font-size: 0.9em; margin-top: 10px; opacity: 0.8;'>"
181
+ "⚠️ <b>Disclaimer:</b> AI models may hallucinate or produce inaccurate information. "
182
+ "Please verify all security advice and code outputs before use."
183
+ "</div>"
184
+ )
185
+
186
  with gr.Tab("📝 Citation & Attribution"):
187
  gr.Markdown("""
188
  ### Authors