Abhaykoul commited on
Commit
f180a2e
1 Parent(s): e3fa3f1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -112,7 +112,7 @@ def chat_gpt():
112
  if user_input is None:
113
  return jsonify({'error': 'Message parameter missing'})
114
  llm = LLM("mistralai/Mixtral-8x7B-Instruct-v0.1") # Initialize the LLM class with a model
115
- response = llm.mistral_chat([{"role": "user", "content": user_input}]) # Call the mistral_chat method
116
  return jsonify({"response": response})
117
 
118
  if __name__ == '__main__':
 
112
  if user_input is None:
113
  return jsonify({'error': 'Message parameter missing'})
114
  llm = LLM("mistralai/Mixtral-8x7B-Instruct-v0.1") # Initialize the LLM class with a model
115
+ response = llm.chat([{"role": "user", "content": user_input}]) # Call the mistral_chat method
116
  return jsonify({"response": response})
117
 
118
  if __name__ == '__main__':