gokaygokay commited on
Commit
8212759
1 Parent(s): 9f18ec6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -27,7 +27,7 @@ def get_messages_formatter_type(model_name):
27
  raise ValueError(f"Unsupported model: {model_name}")
28
 
29
 
30
- @spaces.GPU(duration=120)
31
  def respond(
32
  message,
33
  history: list[tuple[str, str]],
@@ -109,7 +109,7 @@ demo = gr.ChatInterface(
109
  label="Model"
110
  ),
111
  gr.Textbox(value="You are a helpful assistant.", label="System message"),
112
- gr.Slider(minimum=1, maximum=4096, value=2048, step=1, label="Max tokens"),
113
  gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
114
  gr.Slider(
115
  minimum=0.1,
 
27
  raise ValueError(f"Unsupported model: {model_name}")
28
 
29
 
30
+ @spaces.GPU(duration=80)
31
  def respond(
32
  message,
33
  history: list[tuple[str, str]],
 
109
  label="Model"
110
  ),
111
  gr.Textbox(value="You are a helpful assistant.", label="System message"),
112
+ gr.Slider(minimum=1, maximum=8192, value=2048, step=1, label="Max tokens"),
113
  gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
114
  gr.Slider(
115
  minimum=0.1,