MaxNoichl commited on
Commit
5863255
·
1 Parent(s): e6c7c5e

Refactor warmup logic by consolidating _warmup function calls in app.py for improved clarity and consistency.

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -242,7 +242,7 @@ def no_op_decorator(func):
242
  def _warmup():
243
  print("Warming up...")
244
 
245
- _warmup()
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 = {