redpeacock78 commited on
Commit
4e7d7a6
β€’
1 Parent(s): 4cf252d

fix: Fix app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -1,8 +1,6 @@
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()
 
 
1
  import torch
2
  import gradio as gr
3
 
4
+ model = 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")
5
 
6
+ gr.Interface.from_pipeline(model).launch()