BATUTO-ART commited on
Commit
502749c
·
verified ·
1 Parent(s): 3572b0f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -33
app.py CHANGED
@@ -99,39 +99,11 @@ class FashionPromptGenerator:
99
  """Limpia el historial de prompts generados."""
100
  self.previous_prompts.clear()
101
 
102
- # CSS como string separado
103
- custom_css = """
104
- .prompt-box {
105
- border: 1px solid #e2e8f0;
106
- border-radius: 8px;
107
- padding: 16px;
108
- margin-bottom: 16px;
109
- background-color: #f8fafc;
110
- font-family: 'Monaco', 'Consolas', monospace;
111
- font-size: 0.9em;
112
- white-space: pre-wrap;
113
- word-wrap: break-word;
114
- }
115
- .prompt-title {
116
- font-weight: bold;
117
- margin-bottom: 8px;
118
- color: #4a5568;
119
- }
120
- .header {
121
- text-align: center;
122
- margin-bottom: 20px;
123
- }
124
- """
125
-
126
  def create_gradio_interface():
127
  generator = FashionPromptGenerator()
128
 
129
- # Usar Blocks sin el parámetro css y theme
130
  with gr.Blocks() as demo:
131
 
132
- # Inyectar CSS usando gr.HTML
133
- gr.HTML(f"<style>{custom_css}</style>")
134
-
135
  gr.Markdown("""
136
  # 🎭 Advanced Fashion Prompt Generator
137
  *Create photorealistic, discovery-focused prompts with a single, powerful style.*
@@ -162,7 +134,7 @@ def create_gradio_interface():
162
  label="",
163
  lines=4,
164
  interactive=False
165
- ).style(container=False)
166
 
167
  gr.Markdown("## Generated Prompts")
168
 
@@ -175,10 +147,8 @@ def create_gradio_interface():
175
  gr.Markdown(f"### 🎯 Prompt {i+1}")
176
  prompt_output = gr.Textbox(
177
  label="",
178
- lines=12,
179
- max_lines=15,
180
- interactive=False,
181
- show_copy_button=True
182
  )
183
  output_columns.append(col)
184
  output_prompts.append(prompt_output)
 
99
  """Limpia el historial de prompts generados."""
100
  self.previous_prompts.clear()
101
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
102
  def create_gradio_interface():
103
  generator = FashionPromptGenerator()
104
 
 
105
  with gr.Blocks() as demo:
106
 
 
 
 
107
  gr.Markdown("""
108
  # 🎭 Advanced Fashion Prompt Generator
109
  *Create photorealistic, discovery-focused prompts with a single, powerful style.*
 
134
  label="",
135
  lines=4,
136
  interactive=False
137
+ )
138
 
139
  gr.Markdown("## Generated Prompts")
140
 
 
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)