Task_w8_David&Wei

#9
by MrJShen - opened
TGS AI Club org

@NakanoMiku1 @wang2616wei :

The task before the next meet up for you guys would be fix the current bugs :)
You should try to fix all current bugs and add necessary changes in one Pull-Request, so make sure find a way to test your codes locally on your computer before submitting to the code space.

Some hints of necessary changes are:

  1. The header for the output have error, "TypeError: HeadingMixin.header() got an unexpected keyword argument 'divider'". This is because you didn't pass a mandatary argument to the header function, but rather a 'divider' argument. So, an idea change is add a string "AI output: " before the 'divider' argument.
  2. The password widget should use st.text_input, rather than text_area; the characters limit should be less than 50, which is good enough for some API keys; the type of text_input should be "password", try to read the documentation on the st.text_input.
  3. Adding another button is great! But try to avoid vague naming such as "Others....". We hope our naming would be as specific as possible, this is a good coding habit for all of us. So the suggestion of two buttons would be "by ChatGPT" and "by HuggingChat"

Try to correct all three points above and submit one Pull request for all.

Cheers

Sign up or log in to comment