Skip to content

Commit

Permalink
updated gh pages
Browse files Browse the repository at this point in the history
  • Loading branch information
uek-1 committed Jul 3, 2023
1 parent 8f410bb commit 20d5657
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 14 deletions.
Binary file modified github-pages/app.wasm
Binary file not shown.
14 changes: 7 additions & 7 deletions github-pages/preload.js
Original file line number Diff line number Diff line change
Expand Up @@ -1330,16 +1330,16 @@ function getImports() {
const ret = wasm.memory;
return addHeapObject(ret);
};
imports.wbg.__wbindgen_closure_wrapper508 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 103, __wbg_adapter_30);
imports.wbg.__wbindgen_closure_wrapper515 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 107, __wbg_adapter_30);
return addHeapObject(ret);
};
imports.wbg.__wbindgen_closure_wrapper509 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 103, __wbg_adapter_33);
imports.wbg.__wbindgen_closure_wrapper516 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 107, __wbg_adapter_33);
return addHeapObject(ret);
};
imports.wbg.__wbindgen_closure_wrapper752 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 201, __wbg_adapter_36);
imports.wbg.__wbindgen_closure_wrapper759 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 205, __wbg_adapter_36);
return addHeapObject(ret);
};

Expand Down Expand Up @@ -1377,7 +1377,7 @@ function initSync(module) {

async function init(input) {
if (typeof input === 'undefined') {
input = new URL('model-gui-3dc96f1f18a69a4d_bg.wasm', import.meta.url);
input = new URL('model-gui-708a5ad6a05d56ae_bg.wasm', import.meta.url);
}
const imports = getImports();

Expand Down
2 changes: 1 addition & 1 deletion model-gui/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<head>
<!-- change this to your project name -->
<title>rust-mlp-viz</title>
<title>LearnXOR</title>

<!-- config for our rust wasm binary. go to https://trunkrs.dev/assets/#rust for more customization -->
<link data-trunk rel="rust" data-wasm-opt="2" />
Expand Down
8 changes: 3 additions & 5 deletions model-gui/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,10 @@ impl App {
pub fn new(cc : &eframe::CreationContext<'_>) -> Self {
let visuals = egui::Visuals::dark();
cc.egui_ctx.set_visuals(visuals);
let mut debug_opt = egui::style::DebugOptions::default();
debug_opt.debug_on_hover = true;
debug_opt.show_interactive_widgets = true;
let mut style = (*cc.egui_ctx.style()).clone();
style.debug = debug_opt;
cc.egui_ctx.set_style(style);
style.debug.debug_on_hover = true;
style.debug.show_interactive_widgets = true;
//cc.egui_ctx.set_style(style);

App {
time: Instant::now(),
Expand Down
5 changes: 4 additions & 1 deletion model-gui/src/widgets/model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,10 @@ fn create_layers_ui(ui: &mut egui::Ui, model: &mut Model<f64>, radius: f32, laye
fn layer_context_menu(ui : &mut egui::Ui, layer_state : &mut LayerState, layer_menu_state: &mut LayerMenuState) {
ui.label("Layer Actions:");
ui.menu_button("New", |ui| {
ui.text_edit_singleline(&mut layer_state.neuron_count_string).on_hover_text("Enter the number of neurons");
egui::TextEdit::singleline(&mut layer_state.neuron_count_string)
.hint_text("Layer Size")
.show(ui);

egui::ComboBox::from_label("Activation Function")
.selected_text(format!("{:?}", layer_state.activation))
.show_ui(ui, |ui| {
Expand Down

0 comments on commit 20d5657

Please sign in to comment.