Spaces:
Sleeping
Sleeping
Update app.py
Browse filestp=0.3
Welcome msg
app.py
CHANGED
@@ -42,7 +42,7 @@ def init_llama_model():
|
|
42 |
num_return_sequences=1,
|
43 |
eos_token_id=tokenizer.eos_token_id
|
44 |
)
|
45 |
-
llm = HuggingFacePipeline(pipeline = pipeline, model_kwargs = {'temperature':0})
|
46 |
|
47 |
template = '''Classify the text into neutral, negative, or positive. Reply with only one word: Positive, Negative, or Neutral.
|
48 |
|
@@ -74,7 +74,7 @@ if "sessionMessages" not in st.session_state:
|
|
74 |
if "messages" not in st.session_state:
|
75 |
st.session_state.messages = []
|
76 |
|
77 |
-
if user_input := st.chat_input("Say something"):
|
78 |
assistant_input = get_response(user_input)
|
79 |
|
80 |
# add user input to history
|
|
|
42 |
num_return_sequences=1,
|
43 |
eos_token_id=tokenizer.eos_token_id
|
44 |
)
|
45 |
+
llm = HuggingFacePipeline(pipeline = pipeline, model_kwargs = {'temperature':0.3})
|
46 |
|
47 |
template = '''Classify the text into neutral, negative, or positive. Reply with only one word: Positive, Negative, or Neutral.
|
48 |
|
|
|
74 |
if "messages" not in st.session_state:
|
75 |
st.session_state.messages = []
|
76 |
|
77 |
+
if user_input := st.chat_input("Welcome Home,Say something"):
|
78 |
assistant_input = get_response(user_input)
|
79 |
|
80 |
# add user input to history
|