schuler commited on
Commit
a896bb2
·
verified ·
1 Parent(s): d98cec7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -105,18 +105,18 @@ def respond(
105
  result = str(error) +':'+ exc_type +':'+ fname +':'+ exc_tb.tb_lineno
106
  yield result
107
 
108
-
109
-
110
  """
111
  For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
112
  """
113
- status_text = f"*This chat uses the {REPO_NAME} model with {model.get_memory_footprint() / 1e6:.2f} MB memory footprint.*"
 
 
114
 
115
  demo = gr.ChatInterface(
116
  respond,
117
  additional_inputs=[
118
  gr.Textbox(value="" + global_error, label="System message"),
119
- gr.Slider(minimum=1, maximum=2048, value=64, step=1, label="Max new tokens"),
120
  gr.Slider(minimum=0.1, maximum=4.0, value=1.0, step=0.1, label="Temperature"),
121
  gr.Slider(
122
  minimum=0.1,
 
105
  result = str(error) +':'+ exc_type +':'+ fname +':'+ exc_tb.tb_lineno
106
  yield result
107
 
 
 
108
  """
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
  demo = gr.ChatInterface(
116
  respond,
117
  additional_inputs=[
118
  gr.Textbox(value="" + global_error, label="System message"),
119
+ gr.Slider(minimum=1, maximum=4096, value=1024, step=1, label="Max new tokens"),
120
  gr.Slider(minimum=0.1, maximum=4.0, value=1.0, step=0.1, label="Temperature"),
121
  gr.Slider(
122
  minimum=0.1,