root commited on
Commit
7d2d526
·
1 Parent(s): 7b85fba

Add application file

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -143,7 +143,7 @@ def get_completion_from_messages(messages, model="gpt-3.5-turbo", temperature=0)
143
  response = openai.ChatCompletion.create(
144
  model=model,
145
  messages=messages,
146
- temperature=7, # this is the degree of randomness of the model's output
147
  )
148
  return response.choices[0].message["content"]
149
 
@@ -162,12 +162,11 @@ def main():
162
  }}
163
  </style>
164
  """, unsafe_allow_html=True)
165
-
166
  st.markdown("""
167
  Welcome to Chat With Java, your friendly waiter who's here to assist you with your dining choices. \
168
- From beverages to mouthwatering dishes and delightful desserts, I'm here to make your dining experience exceptional!\
169
- HERE is a prompt you can try!
170
- Hey, I'm {your name}}. The time is currently {time}, and my budget is {budget}. Could you please suggest some meals for me?"
171
  """)
172
 
173
  user_input = st.text_input("You:", "")
 
143
  response = openai.ChatCompletion.create(
144
  model=model,
145
  messages=messages,
146
+ temperature=temperature, # this is the degree of randomness of the model's output
147
  )
148
  return response.choices[0].message["content"]
149
 
 
162
  }}
163
  </style>
164
  """, unsafe_allow_html=True)
165
+
166
  st.markdown("""
167
  Welcome to Chat With Java, your friendly waiter who's here to assist you with your dining choices. \
168
+ From beverages to mouthwatering dishes and delightful desserts, \
169
+ Hey im Johnny i have 5000, and i am with my friend, could you suggest some meals for a 4pm date?
 
170
  """)
171
 
172
  user_input = st.text_input("You:", "")