orrinin commited on
Commit
e861ae5
·
verified ·
1 Parent(s): ec59b0c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -64,11 +64,10 @@ def process_text(text_input, unit):
64
  def update(json_path: str):
65
  init_data()
66
  client = Client(client_vl)
67
- job = client.submit(
68
  json_path,
69
  fn_index=1
70
  )
71
- response = job.result()
72
  with open(response, 'r') as f:
73
  data = json.load(f)
74
  local_data.results = data[-1][1]
 
64
  def update(json_path: str):
65
  init_data()
66
  client = Client(client_vl)
67
+ response = client.predict(
68
  json_path,
69
  fn_index=1
70
  )
 
71
  with open(response, 'r') as f:
72
  data = json.load(f)
73
  local_data.results = data[-1][1]