aakash0563 commited on
Commit
c631bd3
1 Parent(s): 61477db

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -55,7 +55,9 @@ def get_Answer(query):
55
  return answer
56
 
57
  def Show_Interface(file_path,query):
58
- if file_path:
 
 
59
  return upload_pdf(file_path)
60
  else:
61
  return get_Answer(query)
 
55
  return answer
56
 
57
  def Show_Interface(file_path,query):
58
+ if file_path and query:
59
+ return "Choose only one method at a time(Upload pdf /or Query from uploaded PDF)"
60
+ elif file_path:
61
  return upload_pdf(file_path)
62
  else:
63
  return get_Answer(query)