osanseviero HF staff merve HF staff commited on
Commit
17fba42
1 Parent(s): ff9bee6

Update app.py (#2)

Browse files

- Update app.py (0db44d9c6d10fa93a9464be27eade335eab3e82b)


Co-authored-by: Merve Noyan <merve@users.noreply.huggingface.co>

Files changed (1) hide show
  1. app.py +13 -1
app.py CHANGED
@@ -81,10 +81,22 @@ additional_inputs=[
81
  )
82
  ]
83
 
84
- with gr.Blocks() as demo:
 
 
 
 
 
 
 
 
 
 
 
85
  gr.ChatInterface(
86
  generate,
87
  additional_inputs=additional_inputs,
 
88
  )
89
 
90
  demo.queue().launch(debug=True)
 
81
  )
82
  ]
83
 
84
+ css = """
85
+ #mkd {
86
+ height: 500px;
87
+ overflow: auto;
88
+ border: 1px solid #ccc;
89
+ }
90
+ """
91
+
92
+ with gr.Blocks(css=css) as demo:
93
+ gr.HTML("<h1><center>Mistral 7B Instruct<h1><center>")
94
+ gr.HTML("<h3><center>In this demo, you can chat with <a href='https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.1'>Mistral-7B-Instruct</a> model. 💬<h3><center>")
95
+ gr.HTML("<h3><center>Learn more about the model <a href='https://huggingface.co/docs/transformers/main/model_doc/mistral'>here</a>. 📚<h3><center>")
96
  gr.ChatInterface(
97
  generate,
98
  additional_inputs=additional_inputs,
99
+ examples=[["What is the secret to life?"], ["Write me a recipe for pancakes."]]
100
  )
101
 
102
  demo.queue().launch(debug=True)