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