wangjin2000 commited on
Commit
9769ada
·
verified ·
1 Parent(s): 0572b0f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
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
- results_df.to_csv(outpath,header=True, index=False)
 
 
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