Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -140,16 +140,20 @@ def create_gradio_interface():
|
|
| 140 |
|
| 141 |
output_columns = []
|
| 142 |
output_prompts = []
|
|
|
|
| 143 |
|
| 144 |
# Crear 10 columnas (m谩ximo)
|
| 145 |
for i in range(10):
|
| 146 |
with gr.Column(visible=(i < 5)) as col: # Mostrar solo 5 inicialmente
|
| 147 |
gr.Markdown(f"### 馃幆 Prompt {i+1}")
|
|
|
|
| 148 |
prompt_output = gr.Textbox(
|
| 149 |
label="",
|
| 150 |
lines=12,
|
| 151 |
-
interactive=False
|
|
|
|
| 152 |
)
|
|
|
|
| 153 |
output_columns.append(col)
|
| 154 |
output_prompts.append(prompt_output)
|
| 155 |
|
|
|
|
| 140 |
|
| 141 |
output_columns = []
|
| 142 |
output_prompts = []
|
| 143 |
+
copy_buttons = []
|
| 144 |
|
| 145 |
# Crear 10 columnas (m谩ximo)
|
| 146 |
for i in range(10):
|
| 147 |
with gr.Column(visible=(i < 5)) as col: # Mostrar solo 5 inicialmente
|
| 148 |
gr.Markdown(f"### 馃幆 Prompt {i+1}")
|
| 149 |
+
|
| 150 |
prompt_output = gr.Textbox(
|
| 151 |
label="",
|
| 152 |
lines=12,
|
| 153 |
+
interactive=False,
|
| 154 |
+
show_copy_button=True # Esto agrega el bot贸n de copia integrado
|
| 155 |
)
|
| 156 |
+
|
| 157 |
output_columns.append(col)
|
| 158 |
output_prompts.append(prompt_output)
|
| 159 |
|