debisoft commited on
Commit
618565a
·
1 Parent(s): d60a0fb
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -36,7 +36,9 @@ def get_completion(prompt):
36
 
37
  def greet(input):
38
  response = get_completion(input)
39
- return json.dumps(response)
 
 
40
 
41
  iface = gr.Interface(fn=greet, inputs=[gr.Textbox(label="Prompt", lines=3)], outputs="json")
42
  iface.launch()
 
36
 
37
  def greet(input):
38
  response = get_completion(input)
39
+ gen_text = response.[0].generated_text
40
+ return gen_text
41
+ #return json.dumps(response)
42
 
43
  iface = gr.Interface(fn=greet, inputs=[gr.Textbox(label="Prompt", lines=3)], outputs="json")
44
  iface.launch()