edmundmiller commited on
Commit
8574486
1 Parent(s): 615f84a

Add basic call

Browse files
Files changed (1) hide show
  1. app.py +27 -2
app.py CHANGED
@@ -1,4 +1,29 @@
1
  import streamlit as st
 
2
 
3
- x = st.slider('Select a value')
4
- st.write(x, 'squared is', x * x)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  import streamlit as st
2
+ from .predict_chromosome import predict_and_write
3
 
4
+
5
+ st.title("DeepLoop")
6
+
7
+ # TODO A drop down of models for different depths
8
+ # depth = st.selectbox("Select Model", ["Model 1", "Model 2", "Model 3"])
9
+
10
+ # Load the model from hugging face
11
+ from huggingface_hub import from_pretrained_keras
12
+
13
+ model = from_pretrained_keras("funlab/DeepLoop-CPGZ-LoopDenoise")
14
+
15
+
16
+ predict_and_write(
17
+ model,
18
+ full_matrix_dir,
19
+ input_name,
20
+ out_dir,
21
+ anchor_dir,
22
+ chromosome,
23
+ small_matrix_size,
24
+ step_size,
25
+ dummy,
26
+ max_dist,
27
+ val_cols,
28
+ keep_zeros,
29
+ )