Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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('
|
| 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('
|
| 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 |
)
|