Hatman commited on
Commit
6a6f69d
·
verified ·
1 Parent(s): 87f01ff

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -0
main.py CHANGED
@@ -134,6 +134,8 @@ def inferencePrompt(item: Core):
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
  returnJson = {"plain": plain_response, "magic": item.itemString + magic_response_data[0]["generated_text"]}
138
  print(f'Return Json {returnJson}')
139
  return returnJson
 
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"])
139
  returnJson = {"plain": plain_response, "magic": item.itemString + magic_response_data[0]["generated_text"]}
140
  print(f'Return Json {returnJson}')
141
  return returnJson