Jour commited on
Commit
cf70084
1 Parent(s): 14195d3

Update app.py

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