张振豪 commited on
Commit
eb65597
·
1 Parent(s): fb2fb27
Files changed (2) hide show
  1. app.py +2 -2
  2. func_gradio.py +2 -1
app.py CHANGED
@@ -25,8 +25,8 @@ app1 = gr.Interface(
25
  description='<a href="https://github.com/zzh24zzh/EPCOT_gradio" class="built-with svelte-1lyswbr" target="_blank" '
26
  'style="font-size: 15px; font-color: black; font-weight:bold" rel="noreferrer">'
27
  'View Documentation </a>',
28
- examples=[["11","Micro-C","10500000","11000000","./examples/atac_GM12878.pickle"],
29
- ["11","Hi-C (ChIA-PET)","7750000","8750000","./examples/atac_GM12878.pickle"]]
30
  )
31
 
32
 
 
25
  description='<a href="https://github.com/zzh24zzh/EPCOT_gradio" class="built-with svelte-1lyswbr" target="_blank" '
26
  'style="font-size: 15px; font-color: black; font-weight:bold" rel="noreferrer">'
27
  'View Documentation </a>',
28
+ # examples=[["11","Micro-C","10500000","11000000","./examples/atac_GM12878.pickle"],
29
+ # ["11","Hi-C (ChIA-PET)","7750000","8750000","./examples/atac_GM12878.pickle"]]
30
  )
31
 
32
 
func_gradio.py CHANGED
@@ -1,4 +1,4 @@
1
- import gradio
2
  import numpy as np
3
  import torch,os,pickle,uuid
4
  from util import check_region,predict_microc,predict_cage,predict_epis,filetobrowser,predict_hic,predict_epb
@@ -7,6 +7,7 @@ import matplotlib.pyplot as plt
7
  from matplotlib.gridspec import GridSpec
8
  import matplotlib
9
  def predict_func(input_chrom,cop_type, region_start,region_end, atac_seq):
 
10
  device = torch.device('cuda:0' if torch.cuda.is_available() else 'cpu')
11
  print(device)
12
  if input_chrom == '' or cop_type == '':
 
1
+ import gradio,os
2
  import numpy as np
3
  import torch,os,pickle,uuid
4
  from util import check_region,predict_microc,predict_cage,predict_epis,filetobrowser,predict_hic,predict_epb
 
7
  from matplotlib.gridspec import GridSpec
8
  import matplotlib
9
  def predict_func(input_chrom,cop_type, region_start,region_end, atac_seq):
10
+ print(os.listdir(os.curdir))
11
  device = torch.device('cuda:0' if torch.cuda.is_available() else 'cpu')
12
  print(device)
13
  if input_chrom == '' or cop_type == '':