peinan commited on
Commit
e425beb
·
1 Parent(s): 41f3f30
Files changed (1) hide show
  1. src/pdfchat/app.py +1 -1
src/pdfchat/app.py CHANGED
@@ -48,7 +48,7 @@ def open_file(file_path: str) -> str:
48
  elif file_path.suffix == ".pdf":
49
  text = "WARNING: PDF file is not supported yet."
50
  else:
51
- gr.exit("Unsupported file type.")
52
 
53
  return text
54
 
 
48
  elif file_path.suffix == ".pdf":
49
  text = "WARNING: PDF file is not supported yet."
50
  else:
51
+ text = "WARNING: Unsupported file format."
52
 
53
  return text
54