bluenevus commited on
Commit
80fc921
·
verified ·
1 Parent(s): e953f03

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -6
app.py CHANGED
@@ -16,10 +16,6 @@ def generate_release_notes(github_url, github_token, gemini_api_key, start_date,
16
  repo_name = github_url.split('/')[-1].replace('.git', '')
17
  repo = g.get_repo(f"MicroHealthLLC/{repo_name}")
18
 
19
- # Convert dates to datetime objects
20
- start_date = datetime.combine(start_date, datetime.min.time())
21
- end_date = datetime.combine(end_date, datetime.max.time())
22
-
23
  # Fetch commits
24
  commits = repo.get_commits(since=start_date, until=end_date)
25
 
@@ -40,8 +36,8 @@ iface = gr.Interface(
40
  gr.Textbox(label="GitHub Repository URL (e.g., https://github.com/MicroHealthLLC/maiko-assistant.git)"),
41
  gr.Textbox(label="GitHub Personal Access Token", type="password"),
42
  gr.Textbox(label="Gemini API Key", type="password"),
43
- gr.Date(label="Start Date"),
44
- gr.Date(label="End Date")
45
  ],
46
  outputs=gr.Textbox(label="Generated Release Notes"),
47
  title="Automated Release Notes Generator",
 
16
  repo_name = github_url.split('/')[-1].replace('.git', '')
17
  repo = g.get_repo(f"MicroHealthLLC/{repo_name}")
18
 
 
 
 
 
19
  # Fetch commits
20
  commits = repo.get_commits(since=start_date, until=end_date)
21
 
 
36
  gr.Textbox(label="GitHub Repository URL (e.g., https://github.com/MicroHealthLLC/maiko-assistant.git)"),
37
  gr.Textbox(label="GitHub Personal Access Token", type="password"),
38
  gr.Textbox(label="Gemini API Key", type="password"),
39
+ gr.DateTime(label="Start Date"),
40
+ gr.DateTime(label="End Date")
41
  ],
42
  outputs=gr.Textbox(label="Generated Release Notes"),
43
  title="Automated Release Notes Generator",