TheRealSpamton commited on
Commit
9ad8ec6
·
verified ·
1 Parent(s): a6dff99

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -97,7 +97,7 @@ css = """
97
  .input-box { background: #1e1e1e; border: 1px solid #333; border-radius: 16px; padding: 12px; }
98
  """
99
 
100
- with gr.Blocks(css=css) as demo:
101
 
102
  # State
103
  name_state = gr.State("Guest")
@@ -141,7 +141,7 @@ with gr.Blocks(css=css) as demo:
141
  with gr.Column(scale=4):
142
  greeting = gr.Markdown("# Good to see you.", elem_classes="greeting")
143
 
144
- chatbot = gr.Chatbot(height=500, show_label=False, bubble_full_width=False)
145
 
146
  with gr.Row(elem_classes="input-box"):
147
  msg_input = gr.Textbox(placeholder="Ask anything...", show_label=False, scale=8)
@@ -165,5 +165,5 @@ with gr.Blocks(css=css) as demo:
165
  send_btn.click(chat, chat_inputs, [chatbot, msg_input, greeting])
166
  msg_input.submit(chat, chat_inputs, [chatbot, msg_input, greeting])
167
 
168
- demo.launch()
169
 
 
97
  .input-box { background: #1e1e1e; border: 1px solid #333; border-radius: 16px; padding: 12px; }
98
  """
99
 
100
+ with gr.Blocks() as demo:
101
 
102
  # State
103
  name_state = gr.State("Guest")
 
141
  with gr.Column(scale=4):
142
  greeting = gr.Markdown("# Good to see you.", elem_classes="greeting")
143
 
144
+ chatbot = gr.Chatbot(height=500, show_label=False)
145
 
146
  with gr.Row(elem_classes="input-box"):
147
  msg_input = gr.Textbox(placeholder="Ask anything...", show_label=False, scale=8)
 
165
  send_btn.click(chat, chat_inputs, [chatbot, msg_input, greeting])
166
  msg_input.submit(chat, chat_inputs, [chatbot, msg_input, greeting])
167
 
168
+ demo.launch(css=css)
169