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