Spaces:
Running
on
Zero
Running
on
Zero
SunderAli17
commited on
Commit
•
bb56969
1
Parent(s):
961db6c
Update app.py
Browse files
app.py
CHANGED
@@ -182,7 +182,7 @@ function refresh() {
|
|
182 |
|
183 |
def create_demo(args, model_name: str, device: str = "cuda" if torch.cuda.is_available() else "cpu",
|
184 |
offload: bool = False):
|
185 |
-
with gr.Blocks() as demo:
|
186 |
gr.Markdown(MARKDOWN)
|
187 |
|
188 |
with gr.Row():
|
@@ -219,7 +219,7 @@ def create_demo(args, model_name: str, device: str = "cuda" if torch.cuda.is_ava
|
|
219 |
gr.Markdown("## Examples")
|
220 |
example_inps = [
|
221 |
[
|
222 |
-
'a
|
223 |
'sample_img/image1.png',
|
224 |
4, 4, 2680261499100305976, 1
|
225 |
],
|
@@ -229,7 +229,7 @@ def create_demo(args, model_name: str, device: str = "cuda" if torch.cuda.is_ava
|
|
229 |
4, 4, 1205240166692517553, 1
|
230 |
],
|
231 |
[
|
232 |
-
'white-haired
|
233 |
'sample_img/image1.png',
|
234 |
4, 4, 6349424134217931066, 1
|
235 |
],
|
@@ -239,7 +239,7 @@ def create_demo(args, model_name: str, device: str = "cuda" if torch.cuda.is_ava
|
|
239 |
4, 4, 10606046113565776207, 1
|
240 |
],
|
241 |
[
|
242 |
-
'a man is holding
|
243 |
'sample_img/test1.jpg',
|
244 |
4, 4, 2410129802683836089, 1
|
245 |
],
|
@@ -254,7 +254,7 @@ def create_demo(args, model_name: str, device: str = "cuda" if torch.cuda.is_ava
|
|
254 |
4, 4, 17733156847328193625, 1
|
255 |
],
|
256 |
[
|
257 |
-
'
|
258 |
'sample_img/test1.jpg',
|
259 |
1, 4, 13223174453874179686, 1
|
260 |
],
|
|
|
182 |
|
183 |
def create_demo(args, model_name: str, device: str = "cuda" if torch.cuda.is_available() else "cpu",
|
184 |
offload: bool = False):
|
185 |
+
with gr.Blocks(js = js_func, theme = theme) as demo:
|
186 |
gr.Markdown(MARKDOWN)
|
187 |
|
188 |
with gr.Row():
|
|
|
219 |
gr.Markdown("## Examples")
|
220 |
example_inps = [
|
221 |
[
|
222 |
+
'a high quality digital avatar, eating icecream',
|
223 |
'sample_img/image1.png',
|
224 |
4, 4, 2680261499100305976, 1
|
225 |
],
|
|
|
229 |
4, 4, 1205240166692517553, 1
|
230 |
],
|
231 |
[
|
232 |
+
'white-haired man with vr technology',
|
233 |
'sample_img/image1.png',
|
234 |
4, 4, 6349424134217931066, 1
|
235 |
],
|
|
|
239 |
4, 4, 10606046113565776207, 1
|
240 |
],
|
241 |
[
|
242 |
+
'a man is holding Pakistani flag on top of a mountain',
|
243 |
'sample_img/test1.jpg',
|
244 |
4, 4, 2410129802683836089, 1
|
245 |
],
|
|
|
254 |
4, 4, 17733156847328193625, 1
|
255 |
],
|
256 |
[
|
257 |
+
'DC comics, Flash',
|
258 |
'sample_img/test1.jpg',
|
259 |
1, 4, 13223174453874179686, 1
|
260 |
],
|