schuler commited on
Commit
f1ccd3c
·
verified ·
1 Parent(s): 44881c4

Update app.py

Browse files

Bigger default values.

Files changed (1) hide show
  1. app.py +2 -2
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=2048, value=64, 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,
 
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,