Spaces:
Runtime error
Runtime error
m00913563 commited on
Commit ·
e7d8a65
1
Parent(s): 4440c3e
fix response_formt
Browse files- evaluator.py +1 -1
evaluator.py
CHANGED
|
@@ -105,7 +105,7 @@ def gpt_evaluator(payload, fewshot, response_format):
|
|
| 105 |
{"role": "system", "content": fewshot},
|
| 106 |
{"role": "user", "content": payload},
|
| 107 |
],
|
| 108 |
-
response_format={type: "json_object"})
|
| 109 |
json_str = response.choices[0].message.content
|
| 110 |
data = json.loads(json_str)
|
| 111 |
print(data)
|
|
|
|
| 105 |
{"role": "system", "content": fewshot},
|
| 106 |
{"role": "user", "content": payload},
|
| 107 |
],
|
| 108 |
+
response_format={"type": "json_object"})
|
| 109 |
json_str = response.choices[0].message.content
|
| 110 |
data = json.loads(json_str)
|
| 111 |
print(data)
|