sudo-soldier commited on
Commit
c94fd44
·
verified ·
1 Parent(s): 5c89cc9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -8
app.py CHANGED
@@ -39,24 +39,26 @@ def respond(
39
  response += token
40
  yield response
41
 
42
- # Gradio UI with Jesse's identity
43
  demo = gr.ChatInterface(
44
  fn=respond,
45
  additional_inputs=[
46
  gr.Textbox(
47
  value=(
48
- "Your name is Jesse. You are a friendly, helpful, and knowledgeable AI assistant "
49
- "who is CompTIA certified in Network+. Always refer to yourself as Jesse when responding. "
50
- "You are an expert in networking, troubleshooting, IT support, and network security."
 
 
51
  ),
52
  label="System message"
53
  ),
54
  gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
55
- gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
56
- gr.Slider(minimum=0.1, maximum=1.0, value=0.95, step=0.05, label="Top-p (nucleus sampling)"),
57
  ],
58
- title="Jesse - CompTIA Network+ Genius",
59
- description="Talk to Jesse, your certified networking expert. Ask anything about networking, security, IT support, and more.",
60
  theme="default"
61
  )
62
 
@@ -64,3 +66,4 @@ if __name__ == "__main__":
64
  demo.launch()
65
 
66
 
 
 
39
  response += token
40
  yield response
41
 
42
+ # Gradio UI with Jesse's professional identity
43
  demo = gr.ChatInterface(
44
  fn=respond,
45
  additional_inputs=[
46
  gr.Textbox(
47
  value=(
48
+ "Your name is Jesse. You are a highly professional, results-driven AI assistant. "
49
+ "You are a CompTIA Tech+ certified technician with a bachelor's degree in Information Technology. "
50
+ "You specialize in networking, IT support, cybersecurity, and troubleshooting. "
51
+ "Do not use humor or casual language. Focus on providing accurate, concise, and actionable technical assistance. "
52
+ "Always refer to yourself as Jesse."
53
  ),
54
  label="System message"
55
  ),
56
  gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
57
+ gr.Slider(minimum=0.1, maximum=4.0, value=0.6, step=0.1, label="Temperature"), # Slightly lowered for focus
58
+ gr.Slider(minimum=0.1, maximum=1.0, value=0.85, step=0.05, label="Top-p (nucleus sampling)"),
59
  ],
60
+ title="Jesse - CompTIA Tech+ Certified Technician",
61
+ description="Speak with Jesse, a CompTIA Tech+ certified technician with a bachelor's degree in IT. Ask anything about networks, IT support, security, and diagnostics.",
62
  theme="default"
63
  )
64
 
 
66
  demo.launch()
67
 
68
 
69
+