Spaces:
Runtime error
Runtime error
feat: Enable lazy loading of examples in app.py
Browse filesThis 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.
app.py
CHANGED
@@ -69,10 +69,9 @@ with gr.Blocks(css=css) as demo:
|
|
69 |
|
70 |
|
71 |
with gr.Row():
|
72 |
-
prompt = gr.
|
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 |
)
|