Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -71,7 +71,7 @@ demo = gr.ChatInterface(
|
|
| 71 |
additional_inputs=[
|
| 72 |
gr.Textbox(value="", label="System message"),
|
| 73 |
# gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
|
| 74 |
-
gr.Slider(minimum=1, maximum=32768, value=512, step=1, label="Max new tokens"),
|
| 75 |
gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
|
| 76 |
gr.Slider(
|
| 77 |
minimum=0.1,
|
|
@@ -84,8 +84,8 @@ demo = gr.ChatInterface(
|
|
| 84 |
],
|
| 85 |
fill_height=True,
|
| 86 |
chatbot=chatbot,
|
| 87 |
-
|
| 88 |
-
theme="allenai/gradio-theme",
|
| 89 |
# theme="Nymbo/Alyx_Theme",
|
| 90 |
)
|
| 91 |
if __name__ == "__main__":
|
|
|
|
| 71 |
additional_inputs=[
|
| 72 |
gr.Textbox(value="", label="System message"),
|
| 73 |
# gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
|
| 74 |
+
gr.Slider(minimum=1, maximum=32768 // 2 - 500, value=512, step=1, label="Max new tokens"),
|
| 75 |
gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
|
| 76 |
gr.Slider(
|
| 77 |
minimum=0.1,
|
|
|
|
| 84 |
],
|
| 85 |
fill_height=True,
|
| 86 |
chatbot=chatbot,
|
| 87 |
+
css=css,
|
| 88 |
+
# theme="allenai/gradio-theme",
|
| 89 |
# theme="Nymbo/Alyx_Theme",
|
| 90 |
)
|
| 91 |
if __name__ == "__main__":
|