neuralworm commited on
Commit
85659ac
·
verified ·
1 Parent(s): 420ea26

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -3,6 +3,7 @@ logger = logging.getLogger(__name__)
3
  logging.basicConfig(level=logging.INFO)
4
 
5
  import gradio as gr
 
6
  from utils import date_to_words
7
  from gematria import calculate_gematria, strip_diacritics
8
  from datetime import datetime, timedelta
@@ -50,8 +51,8 @@ def generate_json_output(results, start_date, end_date):
50
  # --- Main Gradio App ---
51
  with gr.Blocks() as app:
52
  with gr.Row():
53
- start_date = gr.Calendar(type="datetime", label="Start Date")
54
- end_date = gr.Calendar(type="datetime", label="End Date")
55
 
56
  calculate_btn = gr.Button("Calculate Gematria for Date Range")
57
  json_output = gr.Textbox(label="JSON Output")
 
3
  logging.basicConfig(level=logging.INFO)
4
 
5
  import gradio as gr
6
+ from gradio_calendar import Calendar # Importiere das gradio_calendar Modul
7
  from utils import date_to_words
8
  from gematria import calculate_gematria, strip_diacritics
9
  from datetime import datetime, timedelta
 
51
  # --- Main Gradio App ---
52
  with gr.Blocks() as app:
53
  with gr.Row():
54
+ start_date = Calendar(type="datetime", label="Start Date") # Verwende Calendar aus gradio_calendar
55
+ end_date = Calendar(type="datetime", label="End Date") # Verwende Calendar aus gradio_calendar
56
 
57
  calculate_btn = gr.Button("Calculate Gematria for Date Range")
58
  json_output = gr.Textbox(label="JSON Output")