Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,22 +1,15 @@
|
|
1 |
import streamlit as st
|
|
|
2 |
import os
|
3 |
import json
|
4 |
import random
|
5 |
-
|
6 |
-
from PIL import Image
|
7 |
-
from urllib.parse import quote # Ensure this import is included
|
8 |
-
|
9 |
-
# Imports
|
10 |
import base64
|
11 |
import glob
|
12 |
-
import json
|
13 |
import math
|
14 |
import openai
|
15 |
-
import os
|
16 |
import pytz
|
17 |
import re
|
18 |
import requests
|
19 |
-
import streamlit as st
|
20 |
import textract
|
21 |
import time
|
22 |
import zipfile
|
@@ -33,7 +26,8 @@ from openai import ChatCompletion
|
|
33 |
from PyPDF2 import PdfReader
|
34 |
from templates import bot_template, css, user_template
|
35 |
from xml.etree import ElementTree as ET
|
36 |
-
|
|
|
37 |
|
38 |
# Set page configuration with a title and favicon
|
39 |
st.set_page_config(
|
|
|
1 |
import streamlit as st
|
2 |
+
import streamlit.components.v1 as components
|
3 |
import os
|
4 |
import json
|
5 |
import random
|
|
|
|
|
|
|
|
|
|
|
6 |
import base64
|
7 |
import glob
|
|
|
8 |
import math
|
9 |
import openai
|
|
|
10 |
import pytz
|
11 |
import re
|
12 |
import requests
|
|
|
13 |
import textract
|
14 |
import time
|
15 |
import zipfile
|
|
|
26 |
from PyPDF2 import PdfReader
|
27 |
from templates import bot_template, css, user_template
|
28 |
from xml.etree import ElementTree as ET
|
29 |
+
from PIL import Image
|
30 |
+
from urllib.parse import quote # Ensure this import is included
|
31 |
|
32 |
# Set page configuration with a title and favicon
|
33 |
st.set_page_config(
|