baxin commited on
Commit
c42cfa8
·
verified ·
1 Parent(s): 262dd81

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -11,7 +11,7 @@ def string_to_binary(input_string):
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()
@@ -60,7 +60,8 @@ def generate_unique_name():
60
  def send_post_request(payload):
61
  url = "https://baxin-simulator.hf.space/protocol"
62
  protocol_name = generate_unique_name()
63
- data = {"name": protocol_name, "content": payload}
 
64
  headers = {"Content-Type": "application/json"}
65
 
66
  response = requests.post(url, json=data, headers=headers)
 
11
  def upload_protocol(protocol_name):
12
  # robot_ip = "localhost"
13
  # robot_url = "https://baxin-ot-analysis.hf.space"
14
+ robot_url = "https://baxin-analyzer.hf.space"
15
  # endpoint = f"http://{robot_url}:31950/protocols"
16
  endpoint = f"http://{robot_url}/protocols"
17
  # protocol_name = generate_unique_name()
 
60
  def send_post_request(payload):
61
  url = "https://baxin-simulator.hf.space/protocol"
62
  protocol_name = generate_unique_name()
63
+ data = {"name"
64
+ : protocol_name, "content": payload}
65
  headers = {"Content-Type": "application/json"}
66
 
67
  response = requests.post(url, json=data, headers=headers)