Spaces:
Runtime error
Runtime error
Errolmking
commited on
Commit
•
0625180
1
Parent(s):
1ba9280
Update app.py
Browse filesadded -- from langchain.callbacks.base import BaseCallbackHandler
app.py
CHANGED
@@ -5,6 +5,7 @@ import openai
|
|
5 |
from langchain.prompts import ChatPromptTemplate
|
6 |
from langchain.chat_models import ChatOpenAI
|
7 |
from langchain.schema import StrOutputParser
|
|
|
8 |
|
9 |
#Type Hinting
|
10 |
from typing import Any, Callable, Dict, List, Literal, Optional, Tuple, Type, Union
|
|
|
5 |
from langchain.prompts import ChatPromptTemplate
|
6 |
from langchain.chat_models import ChatOpenAI
|
7 |
from langchain.schema import StrOutputParser
|
8 |
+
from langchain.callbacks.base import BaseCallbackHandler
|
9 |
|
10 |
#Type Hinting
|
11 |
from typing import Any, Callable, Dict, List, Literal, Optional, Tuple, Type, Union
|