deepak88 commited on
Commit
5a6f3af
·
verified ·
1 Parent(s): 576d838

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -5,7 +5,7 @@ import datetime
5
  import io
6
  import os
7
  import tempfile # Needed for creating temporary files
8
-
9
  # --- Image Generation Function (Adapted for Gradio) ---
10
  def generate_fuel_bill_image(
11
  company_name: str,
@@ -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.components.Date(label="Min Bill Date", value=datetime.date(2024, 1, 1))
306
- max_bill_date_input = gr.components.Date(label="Max Bill Date", value=datetime.date.today())
307
 
308
  gr.Markdown("## 🖼️ Background & Logo Selection")
309
  gr.Markdown("### Background Texture")
 
5
  import io
6
  import os
7
  import tempfile # Needed for creating temporary files
8
+ from gradio_calendar import Calendar
9
  # --- Image Generation Function (Adapted for Gradio) ---
10
  def generate_fuel_bill_image(
11
  company_name: str,
 
302
 
303
  gr.Markdown("### Bill Date Range")
304
  with gr.Row():
305
+ min_bill_date_input = Calendar(label="Min Bill Date")(label="Min Bill Date", value=datetime.date(2024, 1, 1))
306
+ max_bill_date_input = Calendar(label="Max Bill Date", value=datetime.date.today())
307
 
308
  gr.Markdown("## 🖼️ Background & Logo Selection")
309
  gr.Markdown("### Background Texture")