Spaces:
Running
on
Zero
Running
on
Zero
Prime Cai
commited on
Commit
·
ffe2610
1
Parent(s):
c9f3833
fix samples
Browse files
app.py
CHANGED
|
@@ -127,7 +127,17 @@ def get_samples():
|
|
| 127 |
"t_guidance": 1.0,
|
| 128 |
},
|
| 129 |
]
|
| 130 |
-
return [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 131 |
|
| 132 |
|
| 133 |
demo = gr.Blocks()
|
|
@@ -163,4 +173,4 @@ with demo:
|
|
| 163 |
)
|
| 164 |
|
| 165 |
if __name__ == "__main__":
|
| 166 |
-
demo.launch(debug=False, ssr_mode=False)
|
|
|
|
| 127 |
"t_guidance": 1.0,
|
| 128 |
},
|
| 129 |
]
|
| 130 |
+
return [
|
| 131 |
+
[
|
| 132 |
+
Image.open(sample["image"]),
|
| 133 |
+
sample["text"],
|
| 134 |
+
sample["gemini_prompt"],
|
| 135 |
+
sample["guidance"],
|
| 136 |
+
sample["i_guidance"],
|
| 137 |
+
sample["t_guidance"],
|
| 138 |
+
]
|
| 139 |
+
for sample in sample_list
|
| 140 |
+
]
|
| 141 |
|
| 142 |
|
| 143 |
demo = gr.Blocks()
|
|
|
|
| 173 |
)
|
| 174 |
|
| 175 |
if __name__ == "__main__":
|
| 176 |
+
demo.launch(debug=False, ssr_mode=False, share=True)
|