Spaces:
Running
Running
jannisborn
commited on
Commit
•
d06cedb
1
Parent(s):
fcca9f9
update
Browse files
app.py
CHANGED
@@ -50,7 +50,7 @@ def run_inference(
|
|
50 |
raise ValueError(
|
51 |
f"Expected 2128 omics values, got {len(target)}: {target}"
|
52 |
)
|
53 |
-
target = omics_target
|
54 |
else:
|
55 |
raise ValueError(f"Unknown algorithm version {algorithm_version}")
|
56 |
model_class = PaccMannRL
|
@@ -62,6 +62,8 @@ def run_inference(
|
|
62 |
temperature=temperature,
|
63 |
generated_length=length,
|
64 |
)
|
|
|
|
|
65 |
model = model_class(config, target=target)
|
66 |
samples = list(model.sample(number_of_samples))
|
67 |
|
|
|
50 |
raise ValueError(
|
51 |
f"Expected 2128 omics values, got {len(target)}: {target}"
|
52 |
)
|
53 |
+
target = f"[{omics_target.replace(' ', ',')}]"
|
54 |
else:
|
55 |
raise ValueError(f"Unknown algorithm version {algorithm_version}")
|
56 |
model_class = PaccMannRL
|
|
|
62 |
temperature=temperature,
|
63 |
generated_length=length,
|
64 |
)
|
65 |
+
print("Target is ", target)
|
66 |
+
print(type(target), len(target))
|
67 |
model = model_class(config, target=target)
|
68 |
samples = list(model.sample(number_of_samples))
|
69 |
|