MihaiHuggingFace commited on
Commit
f3f8b46
·
verified ·
1 Parent(s): db67a9d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -43,9 +43,17 @@ def respond(
43
  For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
44
  """
45
  demo = gr.ChatInterface(
 
 
 
 
 
 
 
 
46
  respond,
47
  additional_inputs=[
48
- gr.Textbox(value="You are a friendly Chatbot.", label="System message"),
49
  gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
50
  gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
51
  gr.Slider(
 
43
  For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
44
  """
45
  demo = gr.ChatInterface(
46
+ gr.HTML(f"""
47
+ <div class="header">
48
+ <h1 class="row">Chat with TinyMistral online!</h1>
49
+ <h3 class="row">This is a 248M version of Mistral, which is quite impressive.</h3>
50
+ <h3 class="row">Heck, you can even run that using LLM.js!</h3>
51
+ </div>
52
+ </div>
53
+ """)
54
  respond,
55
  additional_inputs=[
56
+ gr.Textbox(value="You are a friendly chatbot. Because this is a SLM (small language model) as I called it, you must be as smart as GPT-3.5. This is a 248M version of Mistral, which is quite impressive.", label="System message"),
57
  gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
58
  gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
59
  gr.Slider(