Spaces:
Sleeping
Sleeping
Update app.py
Browse filesBigger default values.
app.py
CHANGED
|
@@ -109,7 +109,7 @@ def respond(
|
|
| 109 |
For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
|
| 110 |
"""
|
| 111 |
status_text = \
|
| 112 |
-
f"This chat uses the {REPO_NAME} model with {model.get_memory_footprint() / 1e6:.2f} MB memory footprint." + \
|
| 113 |
f"You may ask questions such as 'What is biology?' or 'What is the human body?'"
|
| 114 |
|
| 115 |
"""
|
|
@@ -138,7 +138,7 @@ with gr.Blocks() as demo:
|
|
| 138 |
respond,
|
| 139 |
additional_inputs=[
|
| 140 |
gr.Textbox(value="" + global_error, label="System message"),
|
| 141 |
-
gr.Slider(minimum=1, maximum=
|
| 142 |
gr.Slider(minimum=0.1, maximum=4.0, value=1.0, step=0.1, label="Temperature"),
|
| 143 |
gr.Slider(
|
| 144 |
minimum=0.1,
|
|
|
|
| 109 |
For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
|
| 110 |
"""
|
| 111 |
status_text = \
|
| 112 |
+
f"This chat uses the {REPO_NAME} model with {model.get_memory_footprint() / 1e6:.2f} MB memory footprint. " + \
|
| 113 |
f"You may ask questions such as 'What is biology?' or 'What is the human body?'"
|
| 114 |
|
| 115 |
"""
|
|
|
|
| 138 |
respond,
|
| 139 |
additional_inputs=[
|
| 140 |
gr.Textbox(value="" + global_error, label="System message"),
|
| 141 |
+
gr.Slider(minimum=1, maximum=4096, value=1024, step=1, label="Max new tokens"),
|
| 142 |
gr.Slider(minimum=0.1, maximum=4.0, value=1.0, step=0.1, label="Temperature"),
|
| 143 |
gr.Slider(
|
| 144 |
minimum=0.1,
|