puffy310 commited on
Commit
5f667a0
1 Parent(s): 1adcca1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -21,9 +21,9 @@ 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
  )
28
 
29
  def response(message, chat_history)
@@ -53,17 +53,17 @@ 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
  )
60
 
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
  )
68
 
69
 
 
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
  )
28
 
29
  def response(message, chat_history)
 
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
  )
60
 
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
  )
68
 
69