elismasilva commited on
Commit
a5a547d
·
1 Parent(s): 84d2d9e

add message examples

Browse files
Files changed (2) hide show
  1. app.py +18 -1
  2. style.css +4 -0
app.py CHANGED
@@ -714,11 +714,28 @@ with gr.Blocks(title="GitRepo Inspector", theme=theme, css=css_code, head=APP_HE
714
  )
715
  )
716
  with gr.Row():
717
- msg = gr.Textbox(label="Input Message", max_lines=2, scale=4, placeholder="Ask: 'What's up with issue #123?'")
718
  send_btn = gr.Button("Send", variant="primary", scale=1)
719
  with gr.Row():
720
  clear_chat_btn = gr.Button("🧹 Clear History")
721
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
722
  chat_trigger_issue = gr.Number(visible=False)
723
  def clear_chat():
724
  return []
 
714
  )
715
  )
716
  with gr.Row():
717
+ msg = gr.Textbox(label="Message", max_lines=2, scale=4, placeholder="Ask: 'What's up with issue #123?'")
718
  send_btn = gr.Button("Send", variant="primary", scale=1)
719
  with gr.Row():
720
  clear_chat_btn = gr.Button("🧹 Clear History")
721
 
722
+ with gr.Row(max_height=300):
723
+ gr.Examples(elem_id="chat-examples",
724
+ examples=[
725
+ ["Whats up with issue 12021?"],
726
+ ["Which repository are we analyzing right now?"],
727
+ ["List 3 open issues about 'chatbot'."],
728
+ ["Are there any issues marked as 'duplicate' by the AI?"],
729
+ ["Show me issues created by user 'abidlabs' (or any user you know exists)."],
730
+ ["Show me the full report for issue #12314"],
731
+ ["Please analyze issue #12264 again right now"],
732
+ ["Check issue #12044 using the 'openai' provider and model 'gpt-4o'"],
733
+ ["Analyze issue #12432 using 'gpt-oss-120b'"],
734
+ ["Is issue #11910 a duplicate? Check now."],
735
+ ],
736
+ inputs=[msg],
737
+ label="Message Examples",
738
+ )
739
  chat_trigger_issue = gr.Number(visible=False)
740
  def clear_chat():
741
  return []
style.css CHANGED
@@ -239,4 +239,8 @@ html {
239
  margin: 0 !important;
240
  padding: 0 !important;
241
  display: inline !important;
 
 
 
 
242
  }
 
239
  margin: 0 !important;
240
  padding: 0 !important;
241
  display: inline !important;
242
+ }
243
+ #chat-examples {
244
+ max-height: 300px;
245
+ overflow: auto !important;
246
  }