Megalino111 commited on
Commit
26ed343
1 Parent(s): e1e43c6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -1,14 +1,13 @@
1
  import gradio as gr
2
  import os
3
- from huggingface_hub import HfApi
4
- from gradio_client import Client
5
 
6
  repo_id = "stabilityai/stable-diffusion-xl-base-0.9"
7
- hf_token="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"
8
 
9
 
10
- #HF_TOKEN = os.environ.get("HF_TOKEN")
11
 
12
  #client = Client.duplicate("stabilityai/stable-diffusion-xl-base-0.9")
13
 
14
- gr.Interface.load("models/stabilityai/stable-diffusion-xl-base-0.9", hf_token=hf_token).launch()
 
1
  import gradio as gr
2
  import os
3
+
 
4
 
5
  repo_id = "stabilityai/stable-diffusion-xl-base-0.9"
6
+ #hf_token="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"
7
 
8
 
9
+ HF_TOKEN = os.environ.get("HF_TOKEN")
10
 
11
  #client = Client.duplicate("stabilityai/stable-diffusion-xl-base-0.9")
12
 
13
+ gr.Interface.load("models/stabilityai/stable-diffusion-xl-base-0.9", hf_token=HF_TOKEN).launch()