linx5o commited on
Commit
4f18e25
·
1 Parent(s): cda57d6
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -38,6 +38,7 @@ def on_message(client, userdata, message):
38
 
39
 
40
  def get_data(serial):
 
41
  global client
42
  if client is None:
43
  client = create_client(HOST, PORT, USERNAME, PASSWORD)
@@ -45,7 +46,7 @@ def get_data(serial):
45
  return
46
 
47
  with gr.Blocks() as blocks:
48
- serial = gr.Textbox("text", label="Serial Number")
49
  send_button = gr.Button(value="Send")
50
 
51
  status_text = gr.Textbox(label="Status", interactive=False)
 
38
 
39
 
40
  def get_data(serial):
41
+ print("Getting data")
42
  global client
43
  if client is None:
44
  client = create_client(HOST, PORT, USERNAME, PASSWORD)
 
46
  return
47
 
48
  with gr.Blocks() as blocks:
49
+ serial = gr.Textbox("0309CA471800852", label="Serial Number")
50
  send_button = gr.Button(value="Send")
51
 
52
  status_text = gr.Textbox(label="Status", interactive=False)