Update app.py
Browse files
app.py
CHANGED
|
@@ -16,9 +16,9 @@ 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 = start_date.
|
| 21 |
-
end_date = end_date.
|
| 22 |
|
| 23 |
# Fetch commits
|
| 24 |
commits = repo.get_commits(since=start_date, until=end_date)
|
|
@@ -40,8 +40,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.
|
| 44 |
-
gr.
|
| 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 |
+
# 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)
|
|
|
|
| 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.Datepicker(label="Start Date"),
|
| 44 |
+
gr.Datepicker(label="End Date")
|
| 45 |
],
|
| 46 |
outputs=gr.Textbox(label="Generated Release Notes"),
|
| 47 |
title="Automated Release Notes Generator",
|