Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -290,7 +290,7 @@ with gr.Blocks(title="Fuel Bill Image Generator") as demo:
|
|
| 290 |
min_rand_amount = gr.Number(label="Min Random Amount", value=2000.0, step=100.0)
|
| 291 |
max_rand_amount = gr.Number(label="Max Random Amount", value=5000.0, step=100.0)
|
| 292 |
|
| 293 |
-
with gr.Column(visible=
|
| 294 |
manual_sale_amount = gr.Number(label="Manual Sale Amount (Rs.):", value=2500.00, step=0.01)
|
| 295 |
|
| 296 |
# Link visibility of columns to radio button
|
|
@@ -302,8 +302,8 @@ with gr.Blocks(title="Fuel Bill Image Generator") as demo:
|
|
| 302 |
|
| 303 |
gr.Markdown("### Bill Date Range")
|
| 304 |
with gr.Row():
|
| 305 |
-
min_bill_date_input = gr.
|
| 306 |
-
max_bill_date_input = gr.
|
| 307 |
|
| 308 |
gr.Markdown("## 🖼️ Background & Logo Selection")
|
| 309 |
gr.Markdown("### Background Texture")
|
|
|
|
| 290 |
min_rand_amount = gr.Number(label="Min Random Amount", value=2000.0, step=100.0)
|
| 291 |
max_rand_amount = gr.Number(label="Max Random Amount", value=5000.0, step=100.0)
|
| 292 |
|
| 293 |
+
with gr.Column(visible=True) as manual_amount_col:
|
| 294 |
manual_sale_amount = gr.Number(label="Manual Sale Amount (Rs.):", value=2500.00, step=0.01)
|
| 295 |
|
| 296 |
# Link visibility of columns to radio button
|
|
|
|
| 302 |
|
| 303 |
gr.Markdown("### Bill Date Range")
|
| 304 |
with gr.Row():
|
| 305 |
+
min_bill_date_input = gr.DateTime(label="Min Bill Date", value=datetime.date(2024, 1, 1))
|
| 306 |
+
max_bill_date_input = gr.DateTime(label="Max Bill Date", value=datetime.date.today())
|
| 307 |
|
| 308 |
gr.Markdown("## 🖼️ Background & Logo Selection")
|
| 309 |
gr.Markdown("### Background Texture")
|