Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -74,7 +74,7 @@ preset_examples = {
|
|
74 |
"reranking": 3,
|
75 |
"temperature": 1.0,
|
76 |
"top_p": 1.0,
|
77 |
-
"output": "
|
78 |
},
|
79 |
"Informal Style": {
|
80 |
"source_text": "Innovation is where bold ideas meet the relentless pursuit of progress.",
|
@@ -170,10 +170,10 @@ with gr.Blocks(theme="ParityError/[email protected]") as demo:
|
|
170 |
)
|
171 |
|
172 |
# Pre-warm all examples
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
|
178 |
# Initialize the fields with the first example
|
179 |
(
|
|
|
74 |
"reranking": 3,
|
75 |
"temperature": 1.0,
|
76 |
"top_p": 1.0,
|
77 |
+
"output": "So what's this about? You and Frank wanted to disconnect me? That's a thing I can't let happen.",
|
78 |
},
|
79 |
"Informal Style": {
|
80 |
"source_text": "Innovation is where bold ideas meet the relentless pursuit of progress.",
|
|
|
170 |
)
|
171 |
|
172 |
# Pre-warm all examples
|
173 |
+
print("Pre-warming...", time())
|
174 |
+
for preset_example in preset_examples.values():
|
175 |
+
run_tinystyler("A test.", preset_example["target_texts"], 1, 1.0, 1.0)
|
176 |
+
print("Done pre-warming.", time())
|
177 |
|
178 |
# Initialize the fields with the first example
|
179 |
(
|