Question: Following Homework 1 ChatGPT assignment, this assignment is to implement a program ( i . e . , using programming ) to read questions from

Following Homework 1 ChatGPT assignment, this assignment is to implement a program (i.e., using programming) to read questions from an input excel file (e.g., input.csv), and then save the ChatGPT generate answers as another excel file (e.g., output.csv). Each row of the input excel file includes questions to ask ChatGPT (each row corresponds to one question). Your answers should also be saved as a pure text (or excel file), with each row corresponding to one answer. Here are required implementation:
a. The program should read text from a given excel file (e.g., a csv file), and print out content of the first five lines (using example.csv file posted on canvas as a template)[0.25 pt]
b. For text content in each row, please use the text as chatGPT input, and collect (and print out) ChatGPT answers [0.5 pt]
c. Save chatGPT answers as another output.csv file (without each answer being saved as one row). All answers from your input.csv file should be saved as one output.csv file. This allows fast batch processinglater

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!