Spaces:
Sleeping
Sleeping
app.py
CHANGED
|
@@ -122,7 +122,7 @@ Give a score for the product. Format your response as a JSON object with \
|
|
| 122 |
#return json.dumps(extract_json(gen_text, 3))
|
| 123 |
gen_text = response["choices"][0]["text"]
|
| 124 |
#return gen_text
|
| 125 |
-
return
|
| 126 |
#return json.dumps(response)
|
| 127 |
|
| 128 |
#iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
|
|
|
| 122 |
#return json.dumps(extract_json(gen_text, 3))
|
| 123 |
gen_text = response["choices"][0]["text"]
|
| 124 |
#return gen_text
|
| 125 |
+
return extract_json(gen_text, 0)
|
| 126 |
#return json.dumps(response)
|
| 127 |
|
| 128 |
#iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|