Update app.py
Browse files
app.py
CHANGED
|
@@ -1,5 +1,9 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
import os
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
import re
|
| 4 |
import json
|
| 5 |
from dotenv import load_dotenv
|
|
@@ -12,8 +16,7 @@ from haystack.nodes import EmbeddingRetriever
|
|
| 12 |
import openai
|
| 13 |
|
| 14 |
|
| 15 |
-
|
| 16 |
-
os.system('pip install pydantic==1.8.2 --use-deprecated=legacy-resolver')
|
| 17 |
|
| 18 |
# for local st testing, may need to run source ~/.zshrc to point to env vars
|
| 19 |
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
import os
|
| 3 |
+
|
| 4 |
+
os.system("pip uninstall -y pydantic")
|
| 5 |
+
os.system('pip install pydantic==1.8.2 --use-deprecated=legacy-resolver')
|
| 6 |
+
|
| 7 |
import re
|
| 8 |
import json
|
| 9 |
from dotenv import load_dotenv
|
|
|
|
| 16 |
import openai
|
| 17 |
|
| 18 |
|
| 19 |
+
|
|
|
|
| 20 |
|
| 21 |
# for local st testing, may need to run source ~/.zshrc to point to env vars
|
| 22 |
|