Update app.py
Browse files
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 |
-
|
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]
|