Lisandro commited on
Commit
d13a106
·
1 Parent(s): 8fa2633

feat: Enable lazy loading of examples in app.py

Browse files

This commit enables lazy loading of examples in the `app.py` file. Previously, the `gr.Examples` block was commented out, but now it has been uncommented to allow for the lazy loading of examples. This improves the performance of the application by only loading examples when needed, reducing the initial load time and optimizing resource usage.

Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -69,10 +69,9 @@ with gr.Blocks(css=css) as demo:
69
 
70
 
71
  with gr.Row():
72
- prompt = gr.Text(
73
  label="Prompt",
74
  show_label=False,
75
- max_lines=1,
76
  placeholder="Enter your prompt",
77
  container=False,
78
  )
 
69
 
70
 
71
  with gr.Row():
72
+ prompt = gr.Textbox(
73
  label="Prompt",
74
  show_label=False,
 
75
  placeholder="Enter your prompt",
76
  container=False,
77
  )