ghostai1 commited on
Commit
10e0809
·
verified ·
1 Parent(s): 37593fc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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 (remove red color)
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: 33%;
223
  }
224
  #output-container {
225
  background: #303030;
226
  padding: 15px;
227
  border-radius: 8px;
228
- width: 66%;
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;