Spaces:
Runtime error
Runtime error
changing temp, title, caterpillar
Browse files
app.py
CHANGED
|
@@ -136,8 +136,9 @@ custom_css = """
|
|
| 136 |
|
| 137 |
# Define the interface
|
| 138 |
with gr.Blocks(css=custom_css) as demo:
|
| 139 |
-
gr.Markdown("<h1 style='text-align: center;'
|
| 140 |
-
gr.Markdown("
|
|
|
|
| 141 |
|
| 142 |
|
| 143 |
|
|
@@ -157,7 +158,7 @@ with gr.Blocks(css=custom_css) as demo:
|
|
| 157 |
|
| 158 |
with gr.Row():
|
| 159 |
max_tokens = gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens")
|
| 160 |
-
temperature = gr.Slider(minimum=0.5, maximum=4.0, value=
|
| 161 |
top_p = gr.Slider(minimum=0.1, maximum=1.0, value=0.95, step=0.05, label="Top-p (nucleus sampling)")
|
| 162 |
|
| 163 |
chat_history = gr.Chatbot(label="Chat")
|
|
|
|
| 136 |
|
| 137 |
# Define the interface
|
| 138 |
with gr.Blocks(css=custom_css) as demo:
|
| 139 |
+
gr.Markdown("<h1 style='text-align: center;'>πβοΈ School AI Chatbot βοΈπ</h1>")
|
| 140 |
+
gr.Markdown("<h3 style='text-align: center;'>π</h3>"))
|
| 141 |
+
gr.Markdown("Interact with Wormington Scholar by selecting the appropriate level below.")
|
| 142 |
|
| 143 |
|
| 144 |
|
|
|
|
| 158 |
|
| 159 |
with gr.Row():
|
| 160 |
max_tokens = gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens")
|
| 161 |
+
temperature = gr.Slider(minimum=0.5, maximum=4.0, value=1.2, step=0.1, label="Temperature")
|
| 162 |
top_p = gr.Slider(minimum=0.1, maximum=1.0, value=0.95, step=0.05, label="Top-p (nucleus sampling)")
|
| 163 |
|
| 164 |
chat_history = gr.Chatbot(label="Chat")
|