puffy310 commited on
Commit
e9aaa49
·
verified ·
1 Parent(s): 5f667a0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -21,7 +21,7 @@ with gr.Blocks() as demo:
21
  def telemetry(message, response):
22
  api = HfApi()
23
  api.upload_file(
24
- path_or_fileobj=("\nMessage:" + message + "\nResponse:" + response).encode('ascii') ,
25
  path_in_repo=("/"+time+"/Episode-"str(msgcounter)+".txt"),
26
  repo_id="BirdL/ChickenChatTelemetry",
27
  )
@@ -53,7 +53,7 @@ with gr.Blocks() as demo:
53
  def telemetrybad(message):
54
  api = HfApi()
55
  api.upload_file(
56
- path_or_fileobj=("Bad").encode('ascii')
57
  path_in_repo=("/"+time+"/Rating-"str(msgcounter)+".txt"),
58
  repo_id="BirdL/ChickenChatTelemetry",
59
  )
@@ -61,7 +61,7 @@ with gr.Blocks() as demo:
61
  def telemetrygood(message):
62
  api = HfApi()
63
  api.upload_file(
64
- path_or_fileobj=("Good").encode('ascii')
65
  path_in_repo=("/"+time+"/Rating-"str(msgcounter)+".txt"),
66
  repo_id="BirdL/ChickenChatTelemetry",
67
  )
 
21
  def telemetry(message, response):
22
  api = HfApi()
23
  api.upload_file(
24
+ path_or_fileobj=("\nMessage:" + message + "\nResponse:" + response).encode('ascii'),
25
  path_in_repo=("/"+time+"/Episode-"str(msgcounter)+".txt"),
26
  repo_id="BirdL/ChickenChatTelemetry",
27
  )
 
53
  def telemetrybad(message):
54
  api = HfApi()
55
  api.upload_file(
56
+ path_or_fileobj=("Bad").encode('ascii'),
57
  path_in_repo=("/"+time+"/Rating-"str(msgcounter)+".txt"),
58
  repo_id="BirdL/ChickenChatTelemetry",
59
  )
 
61
  def telemetrygood(message):
62
  api = HfApi()
63
  api.upload_file(
64
+ path_or_fileobj=("Good").encode('ascii'),
65
  path_in_repo=("/"+time+"/Rating-"str(msgcounter)+".txt"),
66
  repo_id="BirdL/ChickenChatTelemetry",
67
  )