pretzinger commited on
Commit
fe6b4a4
·
1 Parent(s): a7070c0

Enhance app.py with error handling and logging

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -79,12 +79,12 @@ def generate_response(tokenizer, model, user_input):
79
  def main():
80
  apply_custom_css()
81
 
82
- st.title("FDA NDA Submission Assistant")
83
- st.write("Ask the model about submitting an NDA to the FDA.")
84
 
85
  tokenizer, model = load_model()
86
 
87
- user_input = st.text_input("Enter your question:", "What's the best way to submit an NDA to the FDA?")
88
 
89
  if st.button("Generate Response"):
90
  if user_input.strip() == "":
@@ -99,4 +99,4 @@ def main():
99
  st.error(f"An error occurred: {e}")
100
 
101
  if __name__ == "__main__":
102
- main()
 
79
  def main():
80
  apply_custom_css()
81
 
82
+ st.title("FDA Submissions Wizard")
83
+ st.write("I've Been Trained On Submissions To and Responses From FDA.")
84
 
85
  tokenizer, model = load_model()
86
 
87
+ user_input = st.text_input("Enter your question:", "How Do I Learn More About The FDA?")
88
 
89
  if st.button("Generate Response"):
90
  if user_input.strip() == "":
 
99
  st.error(f"An error occurred: {e}")
100
 
101
  if __name__ == "__main__":
102
+ main()