Spaces:
Configuration error
Configuration error
cocktailpeanut
commited on
Commit
•
78617b8
1
Parent(s):
c6dd45b
update
Browse files- README.md +0 -12
- install.json +25 -0
- pinokio.js +37 -0
- requirements.txt +2 -2
- start.json +24 -0
README.md
DELETED
@@ -1,12 +0,0 @@
|
|
1 |
-
---
|
2 |
-
title: LEDITS++
|
3 |
-
emoji: 🦀
|
4 |
-
colorFrom: yellow
|
5 |
-
colorTo: red
|
6 |
-
sdk: gradio
|
7 |
-
sdk_version: 4.7.1
|
8 |
-
app_file: app.py
|
9 |
-
pinned: true
|
10 |
-
---
|
11 |
-
|
12 |
-
Paper: arxiv.org/abs/2311.16711
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
install.json
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"run": [{
|
3 |
+
"method": "shell.run",
|
4 |
+
"params": {
|
5 |
+
"venv": "venv",
|
6 |
+
"path": "..",
|
7 |
+
"message": [
|
8 |
+
"{{pip.install.torch}}",
|
9 |
+
"pip install gradio huggingface_hub gradio gradio_client",
|
10 |
+
"pip install -r requirements.txt"
|
11 |
+
]
|
12 |
+
}
|
13 |
+
}, {
|
14 |
+
"method": "input",
|
15 |
+
"params": {
|
16 |
+
"title": "Install Success",
|
17 |
+
"description": "Go back to the dashboard and launch the app!"
|
18 |
+
}
|
19 |
+
}, {
|
20 |
+
"method": "browser.open",
|
21 |
+
"params": {
|
22 |
+
"uri": "/?selected=LEDITS"
|
23 |
+
}
|
24 |
+
}]
|
25 |
+
}
|
pinokio.js
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
module.exports = {
|
2 |
+
title: "LEDITS++",
|
3 |
+
icon: "magician.png",
|
4 |
+
description: "Limitless Image Editing using Text-to-Image Models",
|
5 |
+
menu: async (kernel) => {
|
6 |
+
let installed = await kernel.exists(__dirname, "pinokio", "venv")
|
7 |
+
if (installed) {
|
8 |
+
let session = await kernel.require(__dirname, "pinokio", "session.json")
|
9 |
+
let running = await kernel.running(__dirname, "pinokio", "start.json")
|
10 |
+
if (running) {
|
11 |
+
return [{
|
12 |
+
icon: "fa-solid fa-spin fa-circle-notch",
|
13 |
+
text: "Running"
|
14 |
+
}, {
|
15 |
+
icon: "fa-solid fa-rocket",
|
16 |
+
text: "Open UI",
|
17 |
+
href: (session && session.url ? session.url : "http://127.0.0.1:7860"),
|
18 |
+
target: "_blank"
|
19 |
+
}]
|
20 |
+
} else {
|
21 |
+
return [{
|
22 |
+
icon: "fa-solid fa-power-off",
|
23 |
+
text: "Launch",
|
24 |
+
href: "pinokio/start.json",
|
25 |
+
params: { fullscreen: true, run: true }
|
26 |
+
}]
|
27 |
+
}
|
28 |
+
} else {
|
29 |
+
return [{
|
30 |
+
icon: "fa-solid fa-plug",
|
31 |
+
text: "Install",
|
32 |
+
href: "pinokio/install.json",
|
33 |
+
params: { run: true, fullscreen: true }
|
34 |
+
}]
|
35 |
+
}
|
36 |
+
}
|
37 |
+
}
|
requirements.txt
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
diffusers==0.21.0
|
2 |
accelerate
|
3 |
transformers
|
4 |
-
torch
|
5 |
-
torchvision
|
|
|
1 |
diffusers==0.21.0
|
2 |
accelerate
|
3 |
transformers
|
4 |
+
#torch
|
5 |
+
#torchvision
|
start.json
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"daemon": true,
|
3 |
+
"run": [{
|
4 |
+
"method": "shell.run",
|
5 |
+
"params": {
|
6 |
+
"venv": "venv",
|
7 |
+
"message": "python app.py",
|
8 |
+
"on": [{ "event": "/http://[0-9.:]+/", "done": true }]
|
9 |
+
}
|
10 |
+
}, {
|
11 |
+
"method": "self.set",
|
12 |
+
"params": {
|
13 |
+
"session.json": {
|
14 |
+
"url": "{{input.event[0]}}"
|
15 |
+
}
|
16 |
+
}
|
17 |
+
}, {
|
18 |
+
"method": "browser.open",
|
19 |
+
"params": {
|
20 |
+
"uri": "{{self.session.url}}",
|
21 |
+
"target": "_blank"
|
22 |
+
}
|
23 |
+
}]
|
24 |
+
}
|