Zaid commited on
Commit
f5aa776
·
verified ·
1 Parent(s): bf2e7bf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -112,7 +112,6 @@ with gr.Blocks(css_paths="style.css", fill_height=True) as demo:
112
  try:
113
  login(token = token)
114
  # load_model()
115
- chat_interface.render()
116
  return f"Authenticated successfully"
117
  except:
118
  return "Invalid token. Please try again."
@@ -121,8 +120,8 @@ with gr.Blocks(css_paths="style.css", fill_height=True) as demo:
121
  token_input = gr.Textbox(label="Hugging Face Access Token", type="password", placeholder="Enter your token here...")
122
  auth_button = gr.Button("Authenticate")
123
  output = gr.Textbox(label="Output")
124
-
125
  auth_button.click(fn=authenticate_token, inputs=token_input, outputs=output)
 
126
 
127
 
128
 
 
112
  try:
113
  login(token = token)
114
  # load_model()
 
115
  return f"Authenticated successfully"
116
  except:
117
  return "Invalid token. Please try again."
 
120
  token_input = gr.Textbox(label="Hugging Face Access Token", type="password", placeholder="Enter your token here...")
121
  auth_button = gr.Button("Authenticate")
122
  output = gr.Textbox(label="Output")
 
123
  auth_button.click(fn=authenticate_token, inputs=token_input, outputs=output)
124
+ chat_interface.render()
125
 
126
 
127