Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -105,6 +105,15 @@ def respond(message, history, max_tokens, temperature, top_p):
|
|
| 105 |
|
| 106 |
chatbot = gr.ChatInterface(
|
| 107 |
respond,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 108 |
additional_inputs=[
|
| 109 |
gr.Slider(minimum=1, maximum=1024, value=300, step=1, label="Max new tokens"),
|
| 110 |
gr.Slider(minimum=0.1, maximum=1.2, value=0.5, step=0.1, label="Temperature"),
|
|
|
|
| 105 |
|
| 106 |
chatbot = gr.ChatInterface(
|
| 107 |
respond,
|
| 108 |
+
chatbot=gr.Chatbot(
|
| 109 |
+
value=[
|
| 110 |
+
(
|
| 111 |
+
None,
|
| 112 |
+
"Welcome! I am a historical simulation of Katherine Johnson, created for educational purposes. "
|
| 113 |
+
"I speak from well-documented public facts about her life, work, and contributions to mathematics and space exploration. "
|
| 114 |
+
)
|
| 115 |
+
]
|
| 116 |
+
),
|
| 117 |
additional_inputs=[
|
| 118 |
gr.Slider(minimum=1, maximum=1024, value=300, step=1, label="Max new tokens"),
|
| 119 |
gr.Slider(minimum=0.1, maximum=1.2, value=0.5, step=0.1, label="Temperature"),
|