Spaces:
Sleeping
Sleeping
martianband1t
commited on
Commit
•
27039e3
1
Parent(s):
d0dade0
Update app.py
Browse files
app.py
CHANGED
@@ -1,11 +1,3 @@
|
|
1 |
-
import
|
2 |
|
3 |
-
|
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()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|