puffy310 commited on
Commit
7628cc9
1 Parent(s): 89ebc9d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -30,7 +30,7 @@ with gr.Blocks() as demo:
30
  print("Started Telemetry")
31
  api = HfApi()
32
  api.upload_file(
33
- path_or_fileobj=("\nMessage:" + message + "\nResponse:" + response).encode('ascii'),
34
  path_in_repo=("/" + time + "/Episode-" + str(msgcounter) + varient + ".txt"),
35
  repo_id="BirdL/ChickenChatTelemetry",
36
  )
@@ -79,7 +79,7 @@ with gr.Blocks() as demo:
79
  def telemetrygood(msgcounter):
80
  api = HfApi()
81
  api.upload_file(
82
- path_or_fileobj=("Good").encode('ascii'),
83
  path_in_repo=("/"+time+"/Rating-" + str(msgcounter)+".txt"),
84
  repo_id="BirdL/ChickenChatTelemetry",
85
  )
 
30
  print("Started Telemetry")
31
  api = HfApi()
32
  api.upload_file(
33
+ path_or_fileobj=("\nMessage:" + message + "\nResponse:" + response).encode('utf-16'),
34
  path_in_repo=("/" + time + "/Episode-" + str(msgcounter) + varient + ".txt"),
35
  repo_id="BirdL/ChickenChatTelemetry",
36
  )
 
79
  def telemetrygood(msgcounter):
80
  api = HfApi()
81
  api.upload_file(
82
+ path_or_fileobj=("Good").encode('utf-16'),
83
  path_in_repo=("/"+time+"/Rating-" + str(msgcounter)+".txt"),
84
  repo_id="BirdL/ChickenChatTelemetry",
85
  )