Spaces:
Running
on
Zero
Running
on
Zero
Refactor warmup logic by consolidating _warmup function calls in app.py for improved clarity and consistency.
Browse files
app.py
CHANGED
@@ -242,7 +242,7 @@ def no_op_decorator(func):
|
|
242 |
def _warmup():
|
243 |
print("Warming up...")
|
244 |
|
245 |
-
|
246 |
|
247 |
|
248 |
# if is_running_in_hf_space():
|
@@ -1423,6 +1423,9 @@ with gr.Blocks(theme=theme, css=f"""
|
|
1423 |
inputs=text_input,
|
1424 |
outputs=query_display
|
1425 |
)
|
|
|
|
|
|
|
1426 |
|
1427 |
|
1428 |
# demo.static_dirs = {
|
|
|
242 |
def _warmup():
|
243 |
print("Warming up...")
|
244 |
|
245 |
+
|
246 |
|
247 |
|
248 |
# if is_running_in_hf_space():
|
|
|
1423 |
inputs=text_input,
|
1424 |
outputs=query_display
|
1425 |
)
|
1426 |
+
|
1427 |
+
_warmup()
|
1428 |
+
|
1429 |
|
1430 |
|
1431 |
# demo.static_dirs = {
|