Kaoticnitemayr commited on
Commit
302535f
·
verified ·
1 Parent(s): 976a0e1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -10
app.py CHANGED
@@ -1,11 +1,3 @@
1
- import requests
2
 
3
- API_URL = "https://api-inference.huggingface.co/models/UnfilteredAI/NSFW-gen-v2.1"
4
- headers = {"Authorization": "Bearer APS-kQ1MVW2vm3BwsDB37d0r0aifZI5ABqa3"}
5
-
6
- def query(payload):
7
- response = requests.post(API_URL, headers=headers, json=payload)
8
- return response.content
9
- image_bytes = query({
10
- "inputs": "Astronaut riding a horse",
11
- })
 
1
+ import gradio as gr
2
 
3
+ gr.load("models/ManuelHettich/acne3_unfiltered_selection_LoRA").launch()