Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,6 @@ from utils.embedding_utils import CustomEmbeddingFunction
|
|
10 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
11 |
|
12 |
st.title("FormulAI")
|
13 |
-
st.write("Ask a question regarding Formula 1:")
|
14 |
|
15 |
# Device and model configuration
|
16 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
@@ -44,7 +43,7 @@ if 'past' not in st.session_state:
|
|
44 |
st.session_state['past'] = []
|
45 |
|
46 |
def get_text():
|
47 |
-
input_text = st.text_input("
|
48 |
return input_text
|
49 |
|
50 |
load_dotenv("chroma.env")
|
|
|
10 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
11 |
|
12 |
st.title("FormulAI")
|
|
|
13 |
|
14 |
# Device and model configuration
|
15 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
|
|
43 |
st.session_state['past'] = []
|
44 |
|
45 |
def get_text():
|
46 |
+
input_text = st.text_input("Ask a question regarding Formula 1: ", "", key="input")
|
47 |
return input_text
|
48 |
|
49 |
load_dotenv("chroma.env")
|