monurcan commited on
Commit
52eb57f
·
1 Parent(s): 02b26ea
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -134,7 +134,9 @@ examples = [
134
 
135
  with gr.Blocks() as demo:
136
  with gr.Sidebar():
137
- login_btn = gr.LoginButton(label="Login with Hugging Face")
 
 
138
 
139
  chatbot = gr.ChatInterface(
140
  fn=model_inference,
 
134
 
135
  with gr.Blocks() as demo:
136
  with gr.Sidebar():
137
+ # Gradio LoginButton may not accept a `label` kwarg depending on the installed version
138
+ # so create it without that argument for maximum compatibility.
139
+ login_btn = gr.LoginButton()
140
 
141
  chatbot = gr.ChatInterface(
142
  fn=model_inference,