Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
from flask import Flask, request, jsonify
|
2 |
-
from langchain.llms import LlamaCpp
|
|
|
3 |
from langchain.callbacks.manager import CallbackManager
|
4 |
from langchain.callbacks.streaming_stdout import StreamingStdOutCallbackHandler
|
5 |
from langchain.prompts import PromptTemplate
|
|
|
1 |
from flask import Flask, request, jsonify
|
2 |
+
# from langchain.llms import LlamaCpp
|
3 |
+
from langchain_community.llms import LlamaCpp
|
4 |
from langchain.callbacks.manager import CallbackManager
|
5 |
from langchain.callbacks.streaming_stdout import StreamingStdOutCallbackHandler
|
6 |
from langchain.prompts import PromptTemplate
|