Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -22,7 +22,7 @@ with gr.Blocks() as demo:
|
|
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 |
|
@@ -54,7 +54,7 @@ with gr.Blocks() as demo:
|
|
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 |
|
@@ -62,7 +62,7 @@ with gr.Blocks() as demo:
|
|
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 |
|
|
|
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 |
|
|
|
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 |
|
|
|
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 |
|