Skip to content

Commit

Permalink
fixed theutil format issue
Browse files Browse the repository at this point in the history
  • Loading branch information
chandralegend committed Mar 25, 2024
1 parent 10b874f commit 3b8c4d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/utils.jac
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ can run_inference(model_name: str, num_samples: int, payload: dict) -> dict {
full_prompt = ret["full_prompt"];
}
} except Exception as e {
outputs.append({"response":str(e), "time":-1 });
outputs.append({"response":str(e), "time": -1 });
}
}
avg_time = sum([o["time"] for o in outputs]) / len(outputs);
Expand Down
2 changes: 1 addition & 1 deletion src/tests/test_generator.jac
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ test generator {
get_item_by_label(generator_tab, "text_input", "thing").set_value("life").run();
generator_tab = get_item_by_label(app, "tab", "Response Generator");
assert not generator_tab.error;
get_item_by_label(generator_tab, "button", "Generate Responses").set_value(True).run();
get_item_by_label(generator_tab, "button", "Generate Responses").set_value(True).run(timeout=20);
assert os.path.exists(os.path.join("runs", app.session_state.run_id, "orca-mini:3b.json"));
assert os.path.exists(os.path.join("data", f"{app.session_state.run_id}_responses.json"));
query_engine.terminate();
Expand Down

0 comments on commit 3b8c4d4

Please sign in to comment.