-
Notifications
You must be signed in to change notification settings - Fork 53
Open
Description
Can you update how to fix this issue?
I am working on GPT-J to generate prompts and I am unable to run the code.
During handling of the above exception, another exception occurred:
I am getting the following error when I tried running python basic_usage_template.py and python advanced_usage_template.py
Traceback (most recent call last):
File "/hdd2/srinath/gpt-j/advanced_usage_template.py", line 58, in <module>
response = context_setting.completion(prompt,
File "/hdd2/srinath/anaconda3/envs/SD_Aug/lib/python3.10/site-packages/gpt_j/gptj_api.py", line 67, in completion
self.response = generate(f"{self.new_prompt} {user}: {self.main_intention}", token_max_length=max_tokens, temperature=temperature, top_p=top_p, top_k=top_k, rep=rep)
File "/hdd2/srinath/anaconda3/envs/SD_Aug/lib/python3.10/site-packages/gpt_j/Gptj.py", line 12, in generate
result = URL.json()
File "/hdd2/srinath/anaconda3/envs/SD_Aug/lib/python3.10/site-packages/requests/models.py", line 975, in json
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
My python version is 3.10.6
Metadata
Metadata
Assignees
Labels
No labels