svhozt commited on
Commit
96eda8c
·
1 Parent(s): 3c20f1d

Fix urllib

Browse files
Files changed (1) hide show
  1. gps.py +3 -2
gps.py CHANGED
@@ -97,17 +97,18 @@ def start_imei_processing(user_id, password):
97
  logs = process_imei_batches(user_id, password)
98
  return "\n".join(logs)
99
 
100
- # Gradio interface with input validation
101
  iface = gr.Interface(
102
  fn=start_imei_processing,
103
  inputs=[
104
  gr.Textbox(label="User ID (Phone Number in International Format)", type="text"),
105
  gr.Textbox(label="Password (4-digit)", type="password"),
 
106
  ],
107
  outputs="text",
108
  title="GPS Tracker IMEI Writer",
109
  description="Enter your User ID and Password to start processing IMEI numbers.",
110
- live=True
111
  )
112
 
113
  iface.launch(share=True)
 
97
  logs = process_imei_batches(user_id, password)
98
  return "\n".join(logs)
99
 
100
+ # Gradio interface with a submit button
101
  iface = gr.Interface(
102
  fn=start_imei_processing,
103
  inputs=[
104
  gr.Textbox(label="User ID (Phone Number in International Format)", type="text"),
105
  gr.Textbox(label="Password (4-digit)", type="password"),
106
+ gr.Button("Start Processing")
107
  ],
108
  outputs="text",
109
  title="GPS Tracker IMEI Writer",
110
  description="Enter your User ID and Password to start processing IMEI numbers.",
111
+ live=False # Prevent real-time execution; button click triggers processing
112
  )
113
 
114
  iface.launch(share=True)