Spaces:
Sleeping
Sleeping
fix build-run.sh
Browse files- build-run.sh +1 -2
- frontend/src/routes/+page.svelte +7 -10
- requirements.txt +1 -1
build-run.sh
CHANGED
@@ -8,5 +8,4 @@ else
|
|
8 |
echo -e "\033[1;31m\nfrontend build failed\n\033[0m" >&2 exit 1
|
9 |
fi
|
10 |
cd ../
|
11 |
-
python run.py --reload
|
12 |
-
|
|
|
8 |
echo -e "\033[1;31m\nfrontend build failed\n\033[0m" >&2 exit 1
|
9 |
fi
|
10 |
cd ../
|
11 |
+
python run.py --reload --pipeline controlnet
|
|
frontend/src/routes/+page.svelte
CHANGED
@@ -15,7 +15,7 @@
|
|
15 |
onFrameChangeStore,
|
16 |
MediaStreamStatusEnum
|
17 |
} from '$lib/mediaStream';
|
18 |
-
import { getPipelineValues } from '$lib/store';
|
19 |
|
20 |
let pipelineParams: FieldProps[];
|
21 |
let pipelineInfo: PipelineInfo;
|
@@ -46,18 +46,15 @@
|
|
46 |
lcmLiveActions.send($onFrameChangeStore.blob);
|
47 |
}
|
48 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
|
50 |
$: isLCMRunning = $lcmLiveStatus !== LCMLiveStatus.DISCONNECTED;
|
51 |
-
// $: {
|
52 |
-
// console.log('onFrameChangeStore', $onFrameChangeStore);
|
53 |
-
// }
|
54 |
|
55 |
-
// // send Webcam stream to LCM
|
56 |
-
// $: {
|
57 |
-
// if ($lcmLiveState.status === LCMLiveStatus.CONNECTED) {
|
58 |
-
// lcmLiveActions.send($pipelineValues);
|
59 |
-
// }
|
60 |
-
// }
|
61 |
let disabled = false;
|
62 |
async function toggleLcmLive() {
|
63 |
if (!isLCMRunning) {
|
|
|
15 |
onFrameChangeStore,
|
16 |
MediaStreamStatusEnum
|
17 |
} from '$lib/mediaStream';
|
18 |
+
import { getPipelineValues, pipelineValues } from '$lib/store';
|
19 |
|
20 |
let pipelineParams: FieldProps[];
|
21 |
let pipelineInfo: PipelineInfo;
|
|
|
46 |
lcmLiveActions.send($onFrameChangeStore.blob);
|
47 |
}
|
48 |
}
|
49 |
+
// send only prompt if text mode
|
50 |
+
$: {
|
51 |
+
if ($lcmLiveStatus === LCMLiveStatus.CONNECTED) {
|
52 |
+
lcmLiveActions.send($pipelineValues);
|
53 |
+
}
|
54 |
+
}
|
55 |
|
56 |
$: isLCMRunning = $lcmLiveStatus !== LCMLiveStatus.DISCONNECTED;
|
|
|
|
|
|
|
57 |
|
|
|
|
|
|
|
|
|
|
|
|
|
58 |
let disabled = false;
|
59 |
async function toggleLcmLive() {
|
60 |
if (!isLCMRunning) {
|
requirements.txt
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
git+https://github.com/huggingface/diffusers@
|
2 |
transformers==4.34.1
|
3 |
gradio==3.50.2
|
4 |
--extra-index-url https://download.pytorch.org/whl/cu121;
|
|
|
1 |
+
git+https://github.com/huggingface/diffusers@6f1435332bc74e286af5e88014236e4cc712b747
|
2 |
transformers==4.34.1
|
3 |
gradio==3.50.2
|
4 |
--extra-index-url https://download.pytorch.org/whl/cu121;
|