Spaces:
Build error
Build error
PascalNotin
commited on
Commit
•
5d3f7a9
1
Parent(s):
53fe6a0
Fixed library bug and improved interface messages
Browse files
app.py
CHANGED
@@ -4,6 +4,7 @@ from transformers import PreTrainedTokenizerFast
|
|
4 |
import tranception
|
5 |
import datasets
|
6 |
from tranception import config, model_pytorch
|
|
|
7 |
import pandas as pd
|
8 |
import matplotlib.pyplot as plt
|
9 |
import seaborn as sns
|
@@ -116,7 +117,7 @@ examples=[
|
|
116 |
['P53_HUMAN: MEEPQSDPSVEPPLSQETFSDLWKLLPENNVLSPLPSQAMDDLMLSPDDIEQWFTEDPGPDEAPRMPEAAPRVAPAPAAPTPAAPAPAPSWPLSSSVPSQKTYQGSYGFRLGFLHSGTAKSVTCTYSPALNKMFCQLAKTCPVQLWVDSTPPPGTRVRAMAIYKQSQHMTEVVRRCPHHERCSDSDGLAPPQHLIRVEGNLRVEYLDDRNTFRHSVVVPYEPPEVGSDCTTIHYNYMCNSSCMGGMNRRPILTIITLEDSSGNLLGRNSFEVRVCACPGRDRRTEEENLRKKGEPHHELPPGSTKRALPNNTSSSPQPKKKPLDGEYFTLQIRGRERFEMFRELNEALELKDAQAGKEPGGSRAHSSHLKSKKGQSTSRHKKLMFKTEGPDSD']
|
117 |
]
|
118 |
|
119 |
-
model_size_selection = gr.Radio(label="Tranception model size", choices=["Small","Medium","Large"], value="Small")
|
120 |
protein_sequence_input = gr.Textbox(lines=1, label="Input protein sequence (see below for examples; default = RL40A_YEAST)",value="MQIFVKTLTGKTITLEVESSDTIDNVKSKIQDKEGIPPDQQRLIFAGKQLEDGRTLSDYNIQKESTLHLVLRLRGGIIEPSLKALASKYNCDKSVCRKCYARLPPRATNCRKRKCGHTNQLRPKKKLK")
|
121 |
mutation_range_start = gr.Number(label="Start of mutation range (min value = 1)",value=1,precision=0)
|
122 |
mutation_range_end = gr.Number(label="End of mutation range (leave empty for full lenth)",value=10,precision=0)
|
|
|
4 |
import tranception
|
5 |
import datasets
|
6 |
from tranception import config, model_pytorch
|
7 |
+
import numpy as np
|
8 |
import pandas as pd
|
9 |
import matplotlib.pyplot as plt
|
10 |
import seaborn as sns
|
|
|
117 |
['P53_HUMAN: MEEPQSDPSVEPPLSQETFSDLWKLLPENNVLSPLPSQAMDDLMLSPDDIEQWFTEDPGPDEAPRMPEAAPRVAPAPAAPTPAAPAPAPSWPLSSSVPSQKTYQGSYGFRLGFLHSGTAKSVTCTYSPALNKMFCQLAKTCPVQLWVDSTPPPGTRVRAMAIYKQSQHMTEVVRRCPHHERCSDSDGLAPPQHLIRVEGNLRVEYLDDRNTFRHSVVVPYEPPEVGSDCTTIHYNYMCNSSCMGGMNRRPILTIITLEDSSGNLLGRNSFEVRVCACPGRDRRTEEENLRKKGEPHHELPPGSTKRALPNNTSSSPQPKKKPLDGEYFTLQIRGRERFEMFRELNEALELKDAQAGKEPGGSRAHSSHLKSKKGQSTSRHKKLMFKTEGPDSD']
|
118 |
]
|
119 |
|
120 |
+
model_size_selection = gr.Radio(label="Tranception model size (larger models are more accurate but are slower at inference)", choices=["Small","Medium","Large"], value="Small")
|
121 |
protein_sequence_input = gr.Textbox(lines=1, label="Input protein sequence (see below for examples; default = RL40A_YEAST)",value="MQIFVKTLTGKTITLEVESSDTIDNVKSKIQDKEGIPPDQQRLIFAGKQLEDGRTLSDYNIQKESTLHLVLRLRGGIIEPSLKALASKYNCDKSVCRKCYARLPPRATNCRKRKCGHTNQLRPKKKLK")
|
122 |
mutation_range_start = gr.Number(label="Start of mutation range (min value = 1)",value=1,precision=0)
|
123 |
mutation_range_end = gr.Number(label="End of mutation range (leave empty for full lenth)",value=10,precision=0)
|