Joe7oo7 commited on
Commit
50c196b
·
verified ·
1 Parent(s): 20ffc0b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -67,10 +67,10 @@ body {
67
  }
68
  """
69
 
70
- # Create a Gradio interface with custom CSS
71
- demo = gr.Interface(
72
  fn=respond,
73
- inputs=[
74
  gr.Textbox(value="You are a friendly Chatbot.", label="System message"),
75
  gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
76
  gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
 
67
  }
68
  """
69
 
70
+ # Create a Gradio chat interface with custom CSS
71
+ demo = gr.ChatInterface(
72
  fn=respond,
73
+ additional_inputs=[
74
  gr.Textbox(value="You are a friendly Chatbot.", label="System message"),
75
  gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
76
  gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),