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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -16
app.py CHANGED
@@ -80,22 +80,14 @@ additional_inputs=[
80
  )
81
  ]
82
 
83
- css = """
84
- #input-box, #output-box {
85
- height: 500px; /* Adjust the height to 500 pixels */
86
- overflow: auto; /* Enable scrolling if content exceeds box height */
87
- border: 1px solid #ccc; /* Add border for better visibility */
88
- padding: 10px; /* Add padding for better spacing */
89
- }
90
- """
91
-
92
- with gr.Blocks(css=css) as demo:
93
  gr.HTML("<h1><center>Mistral-7B-Chat 💬<h1><center>")
94
- chatbot = gr.Chatbot(height=500) # Create the chat window with desired height
95
- gr.ChatInterface(
96
- generate, # Conversation generator function
97
- additional_inputs=additional_inputs, # Additional input components (if any)
98
- examples=[["Joke on darth vader and gandalf"], ["Write me a recipe for Butter Chicken."]],
99
- chat=chatbot # Pass the created chatbot instance
 
100
  )
101
  demo.queue().launch(debug=True)
 
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)