vincentmin commited on
Commit
74c23c5
·
1 Parent(s): 1f1a29f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -46,7 +46,7 @@ def get_date_range(lookback_days: float):
46
  # Get the current date and time in UTC
47
  now_utc = datetime.utcnow()
48
  # Create a new datetime object for today at 18:00 UTC, which is the cutoff time for Arxiv submissions
49
- today_1800_utc = datetime(now_utc.year, now_utc.month, now_utc.day - 1, 18, 0, 0)
50
  min_date = today_1800_utc - timedelta(days=lookback_days)
51
  return min_date, max_date
52
 
@@ -102,15 +102,15 @@ with gr.Blocks() as demo:
102
  with gr.Row():
103
  with gr.Column():
104
  with gr.Accordion("Parameters", open=False):
105
- lookback_days = gr.Number(2, label="Articles from this many days in the past will be searched through.", minimum=1, maximum=7)
106
 
107
  category = gr.Textbox(value="hep-th", label="Which category to search through. See https://arxiv.org/category_taxonomy for possible values.")
108
 
109
  with gr.Box():
110
- gr.Markdown("Describe your field of research in a few sentences.")
111
  input_text = gr.Textbox(placeholder="The relationship between Euclidean solutions to supergravity and black hole microstates.", container=False, show_label=False)
112
  gr.Examples(
113
- [["Supersymmetric Conformal Field Theory"], ["Black hole information paradox and the island conjecture"]],
114
  input_text,
115
  )
116
 
 
46
  # Get the current date and time in UTC
47
  now_utc = datetime.utcnow()
48
  # Create a new datetime object for today at 18:00 UTC, which is the cutoff time for Arxiv submissions
49
+ today_1800_utc = datetime(now_utc.year, now_utc.month, now_utc.day - 2, 18, 0, 0)
50
  min_date = today_1800_utc - timedelta(days=lookback_days)
51
  return min_date, max_date
52
 
 
102
  with gr.Row():
103
  with gr.Column():
104
  with gr.Accordion("Parameters", open=False):
105
+ lookback_days = gr.Number(1, label="Articles from this many days in the past will be searched through.", minimum=1, maximum=7)
106
 
107
  category = gr.Textbox(value="hep-th", label="Which category to search through. See https://arxiv.org/category_taxonomy for possible values.")
108
 
109
  with gr.Box():
110
+ gr.Markdown("Describe your field of research in a few words or sentences.")
111
  input_text = gr.Textbox(placeholder="The relationship between Euclidean solutions to supergravity and black hole microstates.", container=False, show_label=False)
112
  gr.Examples(
113
+ [["Supersymmetric Conformal Field Theory"], ["Black hole information paradox"]],
114
  input_text,
115
  )
116