redpeacock78 commited on
Commit
7cef35a
Β·
1 Parent(s): 6d205a0

fix: Fix app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -1,5 +1,8 @@
1
  import os
 
2
  import gradio as gr
3
 
 
 
4
  auth_token = os.environ.get("TOKEN_FROM_SECRET") or True
5
- gr.Interface.load("models/redpeacock78/test", api_key=auth_token).launch()
 
1
  import os
2
+ import torch
3
  import gradio as gr
4
 
5
+ torch.hub.download_url_to_file("https://huggingface.co/redpeacock78/test/resolve/main/IllustroMeld%20-%20((AnythingV5%3A50%25%2BSomethingV2.2%3A%2550)%3A70%25%2BBalorMixV4.3%3A%2530)%3A70%25%2B((Hyperanatomy_MegamergeV1%3A70%25%2Bgape60%3A30%25)%3A80%25%2BSodaMixV10%3A30%25)%3A30%25.safetensors", "IllustroMeld.safetensors")
6
+
7
  auth_token = os.environ.get("TOKEN_FROM_SECRET") or True
8
+ gr.Interface.load("./IllustroMeld.safetensors", api_key=auth_token).launch()