RefalMachine commited on
Commit
c7fd9ac
·
verified ·
1 Parent(s): f8fa3ba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -14,9 +14,9 @@ clients = {'3B': [OpenAI(api_key='123', base_url=os.getenv('MODEL_NAME_OR_PATH_3
14
 
15
 
16
  def respond(
17
- model_name,
18
  message,
19
  history: list[tuple[str, str]],
 
20
  system_message,
21
  max_tokens,
22
  temperature,
@@ -62,9 +62,9 @@ For information on how to customize the ChatInterface, peruse the gradio docs: h
62
  """
63
  options = ["3B", "7B (work in progress)"]
64
  demo = gr.ChatInterface(
65
- gr.Radio(choices=options, label="Model:", value=options[0]),
66
  respond,
67
  additional_inputs=[
 
68
  gr.Textbox(value="", label="System message"),
69
  gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
70
  gr.Slider(minimum=0.1, maximum=4.0, value=0.3, step=0.1, label="Temperature"),
 
14
 
15
 
16
  def respond(
 
17
  message,
18
  history: list[tuple[str, str]],
19
+ model_name,
20
  system_message,
21
  max_tokens,
22
  temperature,
 
62
  """
63
  options = ["3B", "7B (work in progress)"]
64
  demo = gr.ChatInterface(
 
65
  respond,
66
  additional_inputs=[
67
+ gr.Radio(choices=options, label="Model:", value=options[0]),
68
  gr.Textbox(value="", label="System message"),
69
  gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
70
  gr.Slider(minimum=0.1, maximum=4.0, value=0.3, step=0.1, label="Temperature"),