Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,12 +9,8 @@ def string_to_binary(input_string):
|
|
| 9 |
|
| 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-ot-analysis-api-server.hf.space"
|
| 15 |
-
# endpoint = f"http://{robot_url}:31950/protocols"
|
| 16 |
endpoint = f"http://{robot_url}/protocols"
|
| 17 |
-
# protocol_name = generate_unique_name()
|
| 18 |
|
| 19 |
protocol_file = open(protocol_name, "rb")
|
| 20 |
files = {
|
|
|
|
| 9 |
|
| 10 |
|
| 11 |
def upload_protocol(protocol_name):
|
|
|
|
|
|
|
| 12 |
robot_url = "https://baxin-ot-analysis-api-server.hf.space"
|
|
|
|
| 13 |
endpoint = f"http://{robot_url}/protocols"
|
|
|
|
| 14 |
|
| 15 |
protocol_file = open(protocol_name, "rb")
|
| 16 |
files = {
|