Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,31 @@
|
|
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 |
|
|
|
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
|
16 |
+
import huggingface_hub
|
17 |
+
import dotenv
|
18 |
+
from audio_recorder_streamlit import audio_recorder
|
19 |
+
from bs4 import BeautifulSoup
|
20 |
+
from collections import deque
|
21 |
+
from datetime import datetime
|
22 |
+
from dotenv import load_dotenv
|
23 |
+
from huggingface_hub import InferenceClient
|
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 |
|