Spaces:
Sleeping
Sleeping
Commit
·
fe6b4a4
1
Parent(s):
a7070c0
Enhance app.py with error handling and logging
Browse files
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
|
83 |
-
st.write("
|
84 |
|
85 |
tokenizer, model = load_model()
|
86 |
|
87 |
-
user_input = st.text_input("Enter your question:", "
|
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()
|