Zaid commited on
Commit
7621468
·
verified ·
1 Parent(s): d6a1a38

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -108,11 +108,9 @@ chat_interface = gr.ChatInterface(
108
  )
109
 
110
  with gr.Blocks(css_paths="style.css", fill_height=True) as demo:
111
- gr.DuplicateButton(value="Duplicate Space for private use", elem_id="duplicate-button")
112
  def authenticate_token(token):
113
  try:
114
- # Validate token using Hugging Face Hub API
115
- login(token = hf_token)
116
  load_model()
117
  chat_interface.render()
118
  return f"Authenticated successfully"
 
108
  )
109
 
110
  with gr.Blocks(css_paths="style.css", fill_height=True) as demo:
 
111
  def authenticate_token(token):
112
  try:
113
+ login(token = token)
 
114
  load_model()
115
  chat_interface.render()
116
  return f"Authenticated successfully"