Spaces:
Sleeping
Sleeping
lichorosario
commited on
Commit
•
fcb27fb
1
Parent(s):
aaa4a46
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,17 @@ import gradio as gr
|
|
3 |
|
4 |
api_key = os.getenv('HF_API_KEY')
|
5 |
|
6 |
-
with gr.Blocks() as demo:
|
7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
|
9 |
demo.launch()
|
|
|
3 |
|
4 |
api_key = os.getenv('HF_API_KEY')
|
5 |
|
6 |
+
# with gr.Blocks() as demo:
|
7 |
+
# gr.load("fffiloni/sd-xl-custom-model", api_key=api_key, hf_token=api_key, src="spaces")
|
8 |
+
|
9 |
+
from gradio_client import Client
|
10 |
+
|
11 |
+
client = Client("fffiloni/sd-xl-custom-model")
|
12 |
+
result = client.predict(
|
13 |
+
custom_model="lichorosario/dott_remastered_style_lora_sdxl",
|
14 |
+
api_name="/load_model"
|
15 |
+
)
|
16 |
+
print(result)
|
17 |
+
|
18 |
|
19 |
demo.launch()
|