martianband1t commited on
Commit
27039e3
1 Parent(s): d0dade0

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/black-forest-labs/FLUX.1-dev"
4
- headers = {"Authorization": "Bearer hf_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"}
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/black-forest-labs/FLUX.1-dev").launch()