Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -235,7 +235,9 @@ def predict_peptide_from_file(base_model_path, finetuned_model_path, file_obj, p
|
|
| 235 |
Path.cwd() / "predicted_peptides.csv"
|
| 236 |
)
|
| 237 |
|
| 238 |
-
|
|
|
|
|
|
|
| 239 |
|
| 240 |
return outpath
|
| 241 |
|
|
|
|
| 235 |
Path.cwd() / "predicted_peptides.csv"
|
| 236 |
)
|
| 237 |
|
| 238 |
+
str_outpath = str(outpath) # work around as the latest gr.File needs a string_type input.
|
| 239 |
+
|
| 240 |
+
results_df.to_csv(str_outpath, header=True, index=False)
|
| 241 |
|
| 242 |
return outpath
|
| 243 |
|