tejani commited on
Commit
90b3e82
·
verified ·
1 Parent(s): 3f6f71d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -3,6 +3,6 @@ import os
3
 
4
  # Load the API token from the environment variable
5
  api_token = os.getenv("HF_TOKEN")
6
- interface = gr.load("models/ZB-Tech/Text-to-Image", api_key=api_token)
7
 
8
  interface.launch()
 
3
 
4
  # Load the API token from the environment variable
5
  api_token = os.getenv("HF_TOKEN")
6
+ interface = gr.load("models/ZB-Tech/Text-to-Image", token=api_token)
7
 
8
  interface.launch()