mirror of
https://git.roussel.pro/telecom-paris/pact.git
synced 2026-02-09 10:30:17 +01:00
Implémentation de speech_recognition
This commit is contained in:
@@ -40,13 +40,13 @@ class ApiClient():
|
||||
self.host = host
|
||||
self.port = port
|
||||
|
||||
def send(self,note,note_autre):
|
||||
def send(self,note,commentaire):
|
||||
|
||||
#Exemple ajout d'un commentaire depuis la borne (site ou geste)
|
||||
avis = {
|
||||
"note": note,
|
||||
"source": "borne",
|
||||
"commentaire":"",
|
||||
#Optionel
|
||||
"notes_autre": '{"proprete":'+str(note_autre)+',"calme":10}',
|
||||
"commentaire":commentaire,
|
||||
}
|
||||
print(self.host, self.port)
|
||||
return requests.post("http://"+self.host+":"+self.port+"/add_review", data=avis)
|
||||
|
||||
Reference in New Issue
Block a user