Hatman commited on
Commit
7baf531
·
verified ·
1 Parent(s): 6a6f69d

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +3 -0
main.py CHANGED
@@ -133,6 +133,9 @@ def inferencePrompt(item: Core):
133
  try:
134
  plain_response_data = getPrompt(item.itemString, prompt_model)
135
  magic_response_data = getPrompt(item.itemString, magic_prompt_model)
 
 
 
136
  plain_response = plain_response_data['choices'][0]['message']['content']
137
  print(plain_response)
138
  print(magic_response_data[0]["generated_text"])
 
133
  try:
134
  plain_response_data = getPrompt(item.itemString, prompt_model)
135
  magic_response_data = getPrompt(item.itemString, magic_prompt_model)
136
+ print(plain_response_data['choices'])
137
+ print(plain_response_data['choices'][0])
138
+ print(plain_response_data['choices'][0]['message'])
139
  plain_response = plain_response_data['choices'][0]['message']['content']
140
  print(plain_response)
141
  print(magic_response_data[0]["generated_text"])