Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -59,7 +59,7 @@ SESSION.mount('https://', ADAPTER)
|
|
59 |
UNIPROT_ENDPOINT = 'https://rest.uniprot.org/uniprotkb/{query}'
|
60 |
|
61 |
CSS = """
|
62 |
-
.help-tip {
|
63 |
position: absolute;
|
64 |
display: block;
|
65 |
top: 0px;
|
@@ -386,7 +386,7 @@ def submit_predict(predict_filepath, task, preset, target_family, flag, progress
|
|
386 |
predictions = [pd.DataFrame(prediction) for prediction in predictions]
|
387 |
prediction_df = pd.concat([prediction_df, pd.concat(predictions, ignore_index=True)])
|
388 |
|
389 |
-
predictions_file = f'
|
390 |
prediction_df.to_csv(predictions_file, index=False)
|
391 |
|
392 |
return [predictions_file,
|
@@ -1135,7 +1135,7 @@ QALAHAYFAQYHDPDDEPVADPYDQSFESRDLLIDEWKSLTYDEVISFVPPPLDQEEMES
|
|
1135 |
screen_df['X2'] = fasta
|
1136 |
|
1137 |
job_id = uuid4()
|
1138 |
-
temp_file = Path(f'
|
1139 |
screen_df.to_csv(temp_file, index=False)
|
1140 |
if temp_file.is_file():
|
1141 |
return {screen_data_for_predict: str(temp_file),
|
@@ -1172,7 +1172,7 @@ QALAHAYFAQYHDPDDEPVADPYDQSFESRDLLIDEWKSLTYDEVISFVPPPLDQEEMES
|
|
1172 |
identify_df['X1'] = smiles
|
1173 |
|
1174 |
job_id = uuid4()
|
1175 |
-
temp_file = Path(f'
|
1176 |
identify_df.to_csv(temp_file, index=False)
|
1177 |
if temp_file.is_file():
|
1178 |
return {identify_data_for_predict: str(temp_file),
|
|
|
59 |
UNIPROT_ENDPOINT = 'https://rest.uniprot.org/uniprotkb/{query}'
|
60 |
|
61 |
CSS = """
|
62 |
+
.help-tip > div {
|
63 |
position: absolute;
|
64 |
display: block;
|
65 |
top: 0px;
|
|
|
386 |
predictions = [pd.DataFrame(prediction) for prediction in predictions]
|
387 |
prediction_df = pd.concat([prediction_df, pd.concat(predictions, ignore_index=True)])
|
388 |
|
389 |
+
predictions_file = f'{job_id}_predictions.csv'
|
390 |
prediction_df.to_csv(predictions_file, index=False)
|
391 |
|
392 |
return [predictions_file,
|
|
|
1135 |
screen_df['X2'] = fasta
|
1136 |
|
1137 |
job_id = uuid4()
|
1138 |
+
temp_file = Path(f'{job_id}_input.csv').resolve()
|
1139 |
screen_df.to_csv(temp_file, index=False)
|
1140 |
if temp_file.is_file():
|
1141 |
return {screen_data_for_predict: str(temp_file),
|
|
|
1172 |
identify_df['X1'] = smiles
|
1173 |
|
1174 |
job_id = uuid4()
|
1175 |
+
temp_file = Path(f'{job_id}_input.csv').resolve()
|
1176 |
identify_df.to_csv(temp_file, index=False)
|
1177 |
if temp_file.is_file():
|
1178 |
return {identify_data_for_predict: str(temp_file),
|