Spaces:
Sleeping
Sleeping
Update app.py
#1
by
Mr-Vicky-01
- opened
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
|