awacke1 commited on
Commit
e8cf46e
·
verified ·
1 Parent(s): fce55f9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -6
app.py CHANGED
@@ -1,14 +1,12 @@
1
  import streamlit as st
 
2
  import os
3
  import json
4
- from PIL import Image
5
- from urllib.parse import quote # Ensure this import is included
6
  import base64
7
  import glob
8
- import json
9
  import math
10
  import openai
11
- import os
12
  import pytz
13
  import re
14
  import requests
@@ -26,9 +24,10 @@ from huggingface_hub import InferenceClient
26
  from io import BytesIO
27
  from openai import ChatCompletion
28
  from PyPDF2 import PdfReader
29
- #from templates import bot_template, css, user_template -- pattern with content
30
  from xml.etree import ElementTree as ET
31
- import streamlit.components.v1 as components # Import Streamlit Components for HTML5
 
32
 
33
 
34
  # Set page configuration with a title and favicon
 
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
 
24
  from io import BytesIO
25
  from openai import ChatCompletion
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
 
33
  # Set page configuration with a title and favicon