Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,7 +10,8 @@ def string_to_binary(input_string):
|
|
| 10 |
|
| 11 |
def upload_protocol(protocol_name):
|
| 12 |
# robot_ip = "localhost"
|
| 13 |
-
robot_url = "https://baxin-ot-analysis.hf.space"
|
|
|
|
| 14 |
# endpoint = f"http://{robot_url}:31950/protocols"
|
| 15 |
endpoint = f"http://{robot_url}/protocols"
|
| 16 |
# protocol_name = generate_unique_name()
|
|
@@ -36,7 +37,8 @@ def upload_protocol(protocol_name):
|
|
| 36 |
analysis_result=response_data["data"]["analyses"]
|
| 37 |
analysis_id = response_data["data"]["analysisSummaries"][0]["id"]
|
| 38 |
analysis_status = response_data["data"]["analysisSummaries"][0]["status"]
|
| 39 |
-
print(protocol_id
|
|
|
|
| 40 |
print(analysis_result)
|
| 41 |
print(analysis_id)
|
| 42 |
print(analysis_status)
|
|
|
|
| 10 |
|
| 11 |
def upload_protocol(protocol_name):
|
| 12 |
# robot_ip = "localhost"
|
| 13 |
+
# robot_url = "https://baxin-ot-analysis.hf.space"
|
| 14 |
+
robot_url = "https://baxin-emulation.hf.space"
|
| 15 |
# endpoint = f"http://{robot_url}:31950/protocols"
|
| 16 |
endpoint = f"http://{robot_url}/protocols"
|
| 17 |
# protocol_name = generate_unique_name()
|
|
|
|
| 37 |
analysis_result=response_data["data"]["analyses"]
|
| 38 |
analysis_id = response_data["data"]["analysisSummaries"][0]["id"]
|
| 39 |
analysis_status = response_data["data"]["analysisSummaries"][0]["status"]
|
| 40 |
+
print(protocol_id
|
| 41 |
+
)
|
| 42 |
print(analysis_result)
|
| 43 |
print(analysis_id)
|
| 44 |
print(analysis_status)
|