NoaiGPT commited on
Commit
65ea602
1 Parent(s): 8224d2b
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -8,7 +8,7 @@ if not hf_token:
8
  raise ValueError("No hf_token found in environment variables")
9
 
10
  # Load the model using the token
11
- interface = gr.load("models/NoaiGPT/777", api_key=hf_token)
12
 
13
  # Launch the Gradio interface
14
  interface.launch()
 
8
  raise ValueError("No hf_token found in environment variables")
9
 
10
  # Load the model using the token
11
+ interface = gr.load("models/NoaiGPT/777", use_auth_token=hf_token)
12
 
13
  # Launch the Gradio interface
14
  interface.launch()