Skip to content

main.py format#4

Open
ross-buc wants to merge 2 commits into
wasabi9:mainfrom
ross-buc:main
Open

main.py format#4
ross-buc wants to merge 2 commits into
wasabi9:mainfrom
ross-buc:main

Conversation

@ross-buc
Copy link
Copy Markdown
Contributor

Hi Wasabi,

I am currently studying Python programming, git and github. This is my first pull request, I hope the following changes made are helpful.

  • Removed the unused "questions" variable that was defined before the "questions" input
  • Added an else statement after the if statement
  • Format of the file

Thankyou

Comment thread main.py
question = input("Enter you question; just press enter for ending the session: ")
if question.lower() == "":
break
print(docqa.answer_query(question)["choices"][0]["message"]["content"])
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this helps in better readability but is not necessarily needed. Since if statement always breaks out of the loop. Will merge anyways.

@wasabi9
Copy link
Copy Markdown
Owner

wasabi9 commented May 19, 2023

The changes look good and can be merged. But before that better if you create a branch in this same repo and create a pull request in this repo itself. It seems like you have forked the repo and made changes there.

@ross-buc
Copy link
Copy Markdown
Contributor Author

Okay thanks, I have created a new branch for the changes and submitted another pull request. Cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants