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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -3
app.py CHANGED
@@ -151,7 +151,6 @@ with gr.Blocks(theme=theme) as demo:
151
 
152
 
153
 
154
- demo.launch()
155
 
156
  custom_css = """
157
  #centered-container {
@@ -169,9 +168,17 @@ custom_css = """
169
  font-size: 16px; /* Adjust the font size if needed */
170
  }
171
  """
 
 
 
 
 
 
 
 
 
172
 
173
-
174
-
175
 
176
  # Launch the Gradio app to allow user interaction
177
  demo.launch(share=True)
 
151
 
152
 
153
 
 
154
 
155
  custom_css = """
156
  #centered-container {
 
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
 
183
  # Launch the Gradio app to allow user interaction
184
  demo.launch(share=True)