Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -30,14 +30,13 @@ pipeline = transformers.pipeline(
|
|
30 |
device_map="auto",
|
31 |
)
|
32 |
|
33 |
-
question = None
|
34 |
|
35 |
with st.container():
|
36 |
st.write('\n\n')
|
37 |
st.title('LLM-LANAChat\n\n')
|
38 |
question = st.text_input("Chat", placeholder="E ai?")
|
39 |
|
40 |
-
if question
|
41 |
messages = [
|
42 |
# {"role": "system", "content": "You are a chatbot"},
|
43 |
{"role": "user", "content": question}
|
|
|
30 |
device_map="auto",
|
31 |
)
|
32 |
|
|
|
33 |
|
34 |
with st.container():
|
35 |
st.write('\n\n')
|
36 |
st.title('LLM-LANAChat\n\n')
|
37 |
question = st.text_input("Chat", placeholder="E ai?")
|
38 |
|
39 |
+
if question:
|
40 |
messages = [
|
41 |
# {"role": "system", "content": "You are a chatbot"},
|
42 |
{"role": "user", "content": question}
|