Shriharsh commited on
Commit
537d369
·
verified ·
1 Parent(s): 75f121a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -8
app.py CHANGED
@@ -80,14 +80,21 @@ additional_inputs=[
80
  )
81
  ]
82
 
83
- with gr.Blocks() as demo:
 
 
 
 
 
 
 
 
 
 
84
  gr.HTML("<h1><center>Mistral-7B-Chat 💬<h1><center>")
85
- gr.Box(
86
- gr.ChatInterface(
87
- generate,
88
- additional_inputs=additional_inputs,
89
- examples=[["Joke on darth vader and gandalf"], ["Write me a recipe for Butter Chicken."]]
90
- ),
91
- style="border: 1px solid #ccc; height: 600px; overflow-y: auto;"
92
  )
93
  demo.queue().launch(debug=True)
 
80
  )
81
  ]
82
 
83
+ css = """
84
+ #input-box {
85
+ height: 300px;
86
+ }
87
+ #output-box {
88
+ height: 600px;
89
+ overflow-y: auto;
90
+ }
91
+ """
92
+
93
+ with gr.Blocks(css=css) as demo:
94
  gr.HTML("<h1><center>Mistral-7B-Chat 💬<h1><center>")
95
+ gr.ChatInterface(
96
+ generate,
97
+ additional_inputs=additional_inputs,
98
+ examples=[["Joke on darth vader and gandalf"], ["Write me a recipe for Butter Chicken."]]
 
 
 
99
  )
100
  demo.queue().launch(debug=True)