debisoft commited on
Commit
428524c
1 Parent(s): 5a208e8

json.dumps

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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")