Update app.py
Browse files
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.
|
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__':
|