Update app.py
Browse files
app.py
CHANGED
@@ -114,7 +114,7 @@ def rag_process(query, k=2):
|
|
114 |
|
115 |
return response, retrieved_faqs, metrics
|
116 |
|
117 |
-
# Plot RAG pipeline
|
118 |
def plot_metrics(metrics):
|
119 |
data = pd.DataFrame({
|
120 |
'Stage': ['Embedding', 'Retrieval', 'Generation'],
|
@@ -219,13 +219,13 @@ body {
|
|
219 |
background: #303030;
|
220 |
border-radius: 8px;
|
221 |
align-items: center;
|
222 |
-
width:
|
223 |
}
|
224 |
#output-container {
|
225 |
background: #303030;
|
226 |
padding: 15px;
|
227 |
border-radius: 8px;
|
228 |
-
width:
|
229 |
}
|
230 |
.text-center {
|
231 |
text-align: center;
|
|
|
114 |
|
115 |
return response, retrieved_faqs, metrics
|
116 |
|
117 |
+
# Plot RAG pipeline
|
118 |
def plot_metrics(metrics):
|
119 |
data = pd.DataFrame({
|
120 |
'Stage': ['Embedding', 'Retrieval', 'Generation'],
|
|
|
219 |
background: #303030;
|
220 |
border-radius: 8px;
|
221 |
align-items: center;
|
222 |
+
width: 100%;
|
223 |
}
|
224 |
#output-container {
|
225 |
background: #303030;
|
226 |
padding: 15px;
|
227 |
border-radius: 8px;
|
228 |
+
width: 100%;
|
229 |
}
|
230 |
.text-center {
|
231 |
text-align: center;
|