Commit 3438527393fba02a8beb3c00141f83ada9df1c60

Authored by Erickson Silva
1 parent 9a1e49d7
Exists in master and in 1 other branch devel

Modifica rota e argumento do servidor

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
src/TranslationServer.py
@@ -4,9 +4,9 @@ import sys, timeit @@ -4,9 +4,9 @@ import sys, timeit
4 4
5 app = Flask(__name__) 5 app = Flask(__name__)
6 6
7 -@app.route("/glosa") 7 +@app.route("/translate")
8 def translate(): 8 def translate():
9 - texto = request.args.get('texto') 9 + texto = request.args.get('text')
10 return traduzir(texto) 10 return traduzir(texto)
11 11
12 if __name__ == "__main__": 12 if __name__ == "__main__":