Spaces:
Sleeping
Sleeping
Commit
•
c6a3a63
1
Parent(s):
4c0922b
Update app.py (#1)
Browse files- Update app.py (e24c9f9fc5f5bf162e719465d5164515965632a9)
Co-authored-by: vicky A <[email protected]>
app.py
CHANGED
@@ -6,6 +6,7 @@ from llama_index.embeddings.huggingface import HuggingFaceEmbedding
|
|
6 |
from llama_index.core import Settings
|
7 |
import os
|
8 |
import base64
|
|
|
9 |
|
10 |
# Load environment variables
|
11 |
load_dotenv()
|
@@ -75,6 +76,7 @@ def handle_query(query):
|
|
75 |
ans = " ".join(final_ans)
|
76 |
for i in ans:
|
77 |
yield str(i)
|
|
|
78 |
|
79 |
|
80 |
# Streamlit app initialization
|
|
|
6 |
from llama_index.core import Settings
|
7 |
import os
|
8 |
import base64
|
9 |
+
import time
|
10 |
|
11 |
# Load environment variables
|
12 |
load_dotenv()
|
|
|
76 |
ans = " ".join(final_ans)
|
77 |
for i in ans:
|
78 |
yield str(i)
|
79 |
+
time.sleep(0.01)
|
80 |
|
81 |
|
82 |
# Streamlit app initialization
|