Spaces:
Running
Running
Update main.py
Browse files
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
|