Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
# Copyright 2024 Anton Obukhov, ETH Zurich. All rights reserved.
|
2 |
#
|
3 |
# Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -378,10 +395,11 @@ def run_demo_server(pipe):
|
|
378 |
### Server launch
|
379 |
|
380 |
demo.queue(
|
381 |
-
api_open=
|
382 |
).launch(
|
383 |
-
server_name="0.0.0.0",
|
384 |
-
server_port=7860,
|
|
|
385 |
)
|
386 |
|
387 |
|
|
|
1 |
+
|
2 |
+
'''
|
3 |
+
sudo apt-get update && sudo apt-get install git-lfs ffmpeg cbm
|
4 |
+
# Clone this repository
|
5 |
+
git clone https://huggingface.co/spaces/svjack/StableDelight
|
6 |
+
# Go into the repository
|
7 |
+
cd StableDelight
|
8 |
+
### Install dependencies ###
|
9 |
+
conda create --name py310 python=3.10
|
10 |
+
conda activate py310
|
11 |
+
# Install ipykernel and add the environment to Jupyter
|
12 |
+
pip install ipykernel
|
13 |
+
python -m ipykernel install --user --name py310 --display-name "py310"
|
14 |
+
pip install -r requirements.txt
|
15 |
+
python app.py
|
16 |
+
'''
|
17 |
+
|
18 |
# Copyright 2024 Anton Obukhov, ETH Zurich. All rights reserved.
|
19 |
#
|
20 |
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
395 |
### Server launch
|
396 |
|
397 |
demo.queue(
|
398 |
+
api_open=True,
|
399 |
).launch(
|
400 |
+
#server_name="0.0.0.0",
|
401 |
+
#server_port=7860,
|
402 |
+
share = True
|
403 |
)
|
404 |
|
405 |
|