Spaces:
Sleeping
Sleeping
choice
Browse files
app.py
CHANGED
|
@@ -120,6 +120,7 @@ Give a score for the product. Format your response as a JSON object with \
|
|
| 120 |
response = get_completion(total_prompt)
|
| 121 |
#gen_text = response["predictions"][0]["generated_text"]
|
| 122 |
#return json.dumps(extract_json(gen_text, 3))
|
|
|
|
| 123 |
return json.dumps(response)
|
| 124 |
#return json.dumps(response)
|
| 125 |
|
|
|
|
| 120 |
response = get_completion(total_prompt)
|
| 121 |
#gen_text = response["predictions"][0]["generated_text"]
|
| 122 |
#return json.dumps(extract_json(gen_text, 3))
|
| 123 |
+
gen_text = response["choices"][0]["text"]
|
| 124 |
return json.dumps(response)
|
| 125 |
#return json.dumps(response)
|
| 126 |
|