Spaces:
Running
on
Zero
Running
on
Zero
Alexander Bagus
commited on
Commit
·
b67d3dc
1
Parent(s):
4b23027
22
Browse files- app.py +1 -2
- examples/0_examples.json +9 -6
app.py
CHANGED
|
@@ -62,7 +62,6 @@ def inference(
|
|
| 62 |
timestamp = time.time()
|
| 63 |
print(f"timestamp: {timestamp}")
|
| 64 |
|
| 65 |
-
|
| 66 |
# generation
|
| 67 |
if randomize_seed: seed = random.randint(0, MAX_SEED)
|
| 68 |
generator = torch.Generator().manual_seed(seed)
|
|
@@ -101,7 +100,7 @@ with gr.Blocks() as demo:
|
|
| 101 |
placeholder="Enter your prompt",
|
| 102 |
# container=False,
|
| 103 |
)
|
| 104 |
-
is_polish_prompt = gr.Checkbox(label="Polish prompt", value=
|
| 105 |
run_button = gr.Button("Generate", variant="primary")
|
| 106 |
with gr.Accordion("Advanced Settings", open=False):
|
| 107 |
|
|
|
|
| 62 |
timestamp = time.time()
|
| 63 |
print(f"timestamp: {timestamp}")
|
| 64 |
|
|
|
|
| 65 |
# generation
|
| 66 |
if randomize_seed: seed = random.randint(0, MAX_SEED)
|
| 67 |
generator = torch.Generator().manual_seed(seed)
|
|
|
|
| 100 |
placeholder="Enter your prompt",
|
| 101 |
# container=False,
|
| 102 |
)
|
| 103 |
+
is_polish_prompt = gr.Checkbox(label="Polish prompt", value=True)
|
| 104 |
run_button = gr.Button("Generate", variant="primary")
|
| 105 |
with gr.Accordion("Advanced Settings", open=False):
|
| 106 |
|
examples/0_examples.json
CHANGED
|
@@ -1,8 +1,11 @@
|
|
| 1 |
[
|
| 2 |
-
"
|
| 3 |
-
"
|
| 4 |
-
"
|
| 5 |
-
"
|
| 6 |
-
"
|
| 7 |
-
"
|
|
|
|
|
|
|
|
|
|
| 8 |
]
|
|
|
|
| 1 |
[
|
| 2 |
+
"Saitama, punching",
|
| 3 |
+
"Levi Ackerman, kick",
|
| 4 |
+
"Gojo Satoru, smiling",
|
| 5 |
+
"Goku, powering up",
|
| 6 |
+
"Light Yagami, writing",
|
| 7 |
+
"Spike Spiegel, smoking",
|
| 8 |
+
"Gon Freecss, fishing",
|
| 9 |
+
"Naruto, eating ramen",
|
| 10 |
+
"Luffy, grinning"
|
| 11 |
]
|