Spaces:
Sleeping
Sleeping
Commit
·
a7070c0
1
Parent(s):
aacdac0
Enhance app.py with error handling and logging
Browse files
app.py
CHANGED
@@ -3,6 +3,13 @@ from transformers import AutoModelForCausalLM, AutoTokenizer
|
|
3 |
import torch
|
4 |
import os
|
5 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
# Apply custom CSS for retro 80s green theme
|
7 |
def apply_custom_css():
|
8 |
try:
|
@@ -72,7 +79,6 @@ def generate_response(tokenizer, model, user_input):
|
|
72 |
def main():
|
73 |
apply_custom_css()
|
74 |
|
75 |
-
st.set_page_config(page_title="FDA NDA Submission Assistant", layout="centered")
|
76 |
st.title("FDA NDA Submission Assistant")
|
77 |
st.write("Ask the model about submitting an NDA to the FDA.")
|
78 |
|
|
|
3 |
import torch
|
4 |
import os
|
5 |
|
6 |
+
# Set page configuration as the first Streamlit command
|
7 |
+
st.set_page_config(
|
8 |
+
page_title="FDA NDA Submission Assistant",
|
9 |
+
layout="centered",
|
10 |
+
initial_sidebar_state="auto"
|
11 |
+
)
|
12 |
+
|
13 |
# Apply custom CSS for retro 80s green theme
|
14 |
def apply_custom_css():
|
15 |
try:
|
|
|
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 |
|