allyyy commited on
Commit
14163aa
·
verified ·
1 Parent(s): be7c649

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -30
app.py CHANGED
@@ -147,36 +147,6 @@ with gr.Blocks(theme=theme) as demo:
147
  answer = gr.Textbox(label="CalmBot's Response :D", placeholder="CalmBot will respond here..", interactive=False, lines=20)
148
  submit_button = gr.Button("Submit")
149
  submit_button.click(fn=query_model, inputs=question, outputs=answer)
150
-
151
-
152
-
153
-
154
-
155
- custom_css = """
156
- #centered-container {
157
- display: flex;
158
- justify-content: center;
159
- align-items: center;
160
- height: 100vh; /* Full viewport height */
161
- }
162
- .output-textbox {
163
- color: #3498db; /* Example color (blue) for the output text */
164
- font-size: 18px; /* Adjust the font size if needed */
165
- }
166
- .input-textbox {
167
- color: #e74c3c; /* Example color (red) for the input text */
168
- font-size: 16px; /* Adjust the font size if needed */
169
- }
170
- """
171
- with gr.Blocks(css=custom_css) as demo:
172
- with gr.Container(elem_id="centered-container"):
173
- chatbot_interface = gr.Interface(
174
- fn=chatbot,
175
- inputs=gr.Textbox(elem_classes=["input-textbox"]), # Apply class to input
176
- outputs=gr.Textbox(elem_classes=["output-textbox"]), # Apply class to output
177
- title="Styled Chatbot",
178
- )
179
- chatbot_interface.render()
180
 
181
  demo.launch()
182
 
 
147
  answer = gr.Textbox(label="CalmBot's Response :D", placeholder="CalmBot will respond here..", interactive=False, lines=20)
148
  submit_button = gr.Button("Submit")
149
  submit_button.click(fn=query_model, inputs=question, outputs=answer)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
150
 
151
  demo.launch()
152