paulcalzada commited on
Commit
003aa82
·
verified ·
1 Parent(s): 49fa0e5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -7
app.py CHANGED
@@ -73,12 +73,10 @@ with gr.Blocks(title="DeepV for RTL (Model-Agnostic)", theme=gr.themes.Soft()) a
73
  # --- Loading State Components ---
74
  with gr.Row():
75
  run_btn = gr.Button("Generate Verilog", variant="primary", elem_id="generate-button")
76
- loading_state = gr.Textbox(
 
77
  value="Generating...",
78
- show_copy_button=False,
79
  visible=False,
80
- container=True,
81
- label=None, # This is the key change
82
  elem_id="loading-state"
83
  )
84
 
@@ -169,13 +167,16 @@ with gr.Blocks(title="DeepV for RTL (Model-Agnostic)", theme=gr.themes.Soft()) a
169
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
170
  }
171
 
172
- /* Styling for the loading state textbox */
173
  #loading-state {
 
174
  text-align: center;
175
  font-size: 1.2em;
176
  font-weight: bold;
177
- color: #4B90F6; /* The light blue you wanted */
178
- background-color: #e6f2ff; /* A light blue that matches the soft theme */
 
 
179
  animation: pulse 1s infinite;
180
  }
181
 
 
73
  # --- Loading State Components ---
74
  with gr.Row():
75
  run_btn = gr.Button("Generate Verilog", variant="primary", elem_id="generate-button")
76
+ # Replaced gr.Textbox with gr.Markdown for better styling control
77
+ loading_state = gr.Markdown(
78
  value="Generating...",
 
79
  visible=False,
 
 
80
  elem_id="loading-state"
81
  )
82
 
 
167
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
168
  }
169
 
170
+ /* Styling for the loading state markdown block */
171
  #loading-state {
172
+ padding: 14px; /* Matches button padding */
173
  text-align: center;
174
  font-size: 1.2em;
175
  font-weight: bold;
176
+ color: #4B90F6;
177
+ background-color: #e6f2ff;
178
+ border-radius: 8px; /* Matches button border-radius */
179
+ box-shadow: 0 2px 4px rgba(0,0,0,0.1);
180
  animation: pulse 1s infinite;
181
  }
182