Shriharsh commited on
Commit
5c77231
1 Parent(s): f0583b2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -8
app.py CHANGED
@@ -79,24 +79,19 @@ additional_inputs=[
79
  info="Penalize repeated tokens",
80
  )
81
  ]
82
- css = """
83
- #output-box {
84
- height: 600px; /* Adjust the height as needed */
85
- }
86
- """
87
 
88
  # Create a Chatbot object with the desired height
89
- chatbot = gr.Chatbot(height=400,
90
  layout="bubble")
91
 
92
- with gr.Blocks(css=css) as demo:
93
  gr.HTML("<h1><center>Mistral-7B-Chat 💬<h1><center>")
94
  gr.ChatInterface(
95
  generate,
96
  chatbot=chatbot, # Use the created Chatbot object
97
  additional_inputs=additional_inputs,
98
  examples=[["Joke on darth vader and gandalf"], ["Write me a recipe for Butter Chicken."]],
99
- fill_height=True # Expand chat interface to fill available height
100
  )
101
 
102
  demo.queue().launch(debug=True)
 
79
  info="Penalize repeated tokens",
80
  )
81
  ]
 
 
 
 
 
82
 
83
  # Create a Chatbot object with the desired height
84
+ chatbot = gr.Chatbot(height=450,
85
  layout="bubble")
86
 
87
+ with gr.Blocks() as demo:
88
  gr.HTML("<h1><center>Mistral-7B-Chat 💬<h1><center>")
89
  gr.ChatInterface(
90
  generate,
91
  chatbot=chatbot, # Use the created Chatbot object
92
  additional_inputs=additional_inputs,
93
  examples=[["Joke on darth vader and gandalf"], ["Write me a recipe for Butter Chicken."]],
94
+ # fill_height=True # Expand chat interface to fill available height
95
  )
96
 
97
  demo.queue().launch(debug=True)