Jour commited on
Commit
4bd00e0
·
1 Parent(s): 22a1c74

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -34,9 +34,9 @@ def translate(input, output, text):
34
  },
35
  }
36
  response = requests.request("POST", API_URL, json=json_)
37
- output = response.json()[0]['generated_text']
38
 
39
- return output.replace(instruction, '', 1)
40
 
41
  demo = gr.Blocks()
42
 
 
34
  },
35
  }
36
  response = requests.request("POST", API_URL, json=json_)
37
+ output = response.json()
38
 
39
+ return output
40
 
41
  demo = gr.Blocks()
42