olegshulyakov commited on
Commit
f9def96
·
verified ·
1 Parent(s): 81a1055

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -20,6 +20,7 @@ import mlx_lm
20
  from mlx_lm import convert
21
 
22
  HF_TOKEN = os.environ.get("HF_TOKEN")
 
23
 
24
  # I'm not sure if we need to add more stuff here
25
  QUANT_PARAMS = {
@@ -187,7 +188,7 @@ iface = gr.Interface(
187
  # Create Gradio interface
188
  with gr.Blocks(css=css) as demo:
189
  gr.Markdown("You must be logged in to use MLX-my-repo.")
190
- gr.LoginButton()
191
 
192
  iface.render()
193
 
 
20
  from mlx_lm import convert
21
 
22
  HF_TOKEN = os.environ.get("HF_TOKEN")
23
+ SPACE_HOST = os.environ.get("SPACE_HOST")
24
 
25
  # I'm not sure if we need to add more stuff here
26
  QUANT_PARAMS = {
 
188
  # Create Gradio interface
189
  with gr.Blocks(css=css) as demo:
190
  gr.Markdown("You must be logged in to use MLX-my-repo.")
191
+ gr.LoginButton(redirect=f"https://{SPACE_HOST}/login/callback")
192
 
193
  iface.render()
194