akashmadisetty commited on
Commit
d6791a6
·
1 Parent(s): faaacd7
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1272,7 +1272,7 @@ with gr.Blocks(theme=GemmaLightTheme()) as demo:
1272
  )
1273
 
1274
  # Add CSS for better styling
1275
- demo.load(lambda: None, None, None, _js="""
1276
  () => {
1277
  // Add custom CSS for better styling
1278
  const style = document.createElement('style');
@@ -1315,8 +1315,8 @@ with gr.Blocks(theme=GemmaLightTheme()) as demo:
1315
 
1316
  # Load default token if available
1317
  if DEFAULT_HF_TOKEN:
1318
- demo.load(fn=authenticate, inputs=[hf_token], outputs=[auth_status]).then(
1319
- fn=auth_complete, inputs=[hf_token], outputs=[auth_status]
1320
  )
1321
 
1322
  demo.launch(share=False)
 
1272
  )
1273
 
1274
  # Add CSS for better styling
1275
+ demo.load(js="""
1276
  () => {
1277
  // Add custom CSS for better styling
1278
  const style = document.createElement('style');
 
1315
 
1316
  # Load default token if available
1317
  if DEFAULT_HF_TOKEN:
1318
+ demo.load(lambda x: authenticate(DEFAULT_HF_TOKEN), outputs=auth_status).then(
1319
+ lambda x: auth_complete(DEFAULT_HF_TOKEN), outputs=auth_status
1320
  )
1321
 
1322
  demo.launch(share=False)