Skip to content

Commit 893e933

Browse files
committed
add os.environ['INPUT_EXPLANATION-IN']
for gemini_qna() function
1 parent a08c998 commit 893e933

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

entrypoint.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,17 @@ def main() -> None:
2929
readme_file = pathlib.Path(readme_file_str)
3030
assert readme_file.exists(), 'No README file'
3131

32-
assert 'INPUT_API-KEY' in os.environ, os.environ.keys()
3332
api_key = os.environ['INPUT_API-KEY']
3433

35-
feedback = ai_tutor.gemini_qna(report_files, student_files, readme_file, api_key)
34+
explanation_in = os.environ['INPUT_EXPLANATION-IN']
35+
36+
feedback = ai_tutor.gemini_qna(
37+
report_files,
38+
student_files,
39+
readme_file,
40+
api_key,
41+
explanation_in
42+
)
3643

3744
print(feedback)
3845

0 commit comments

Comments
 (0)