Spaces:
Build error
Build error
Update app.py
Browse files
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
|
| 49 |
-
"
|
| 50 |
-
"You
|
|
|
|
|
|
|
| 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.
|
| 56 |
-
gr.Slider(minimum=0.1, maximum=1.0, value=0.
|
| 57 |
],
|
| 58 |
-
title="Jesse - CompTIA
|
| 59 |
-
description="
|
| 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 |
+
|