VishalMysore commited on
Commit
39f1e00
β€’
1 Parent(s): b4a5ab4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -13,7 +13,7 @@ title = "<h1 style='text-align: center; color: #333333; font-size: 40px;'> Maya,
13
  description = "1)Put your context (could be any topic)</br> 2) Create Questions, </br> 3) Summarize </br>4) Detect Hallucination ( differece between Summary and Context) ."
14
  description2 = "Detect Hallucination using NLI ."
15
  titleRAG = "<h1 style='text-align: center; color: #333333; font-size: 40px;'> Routing , Chaining and Branching of RAG documents </h1>"
16
- descriptionRag = " This novel approach involves creating a router across multiple Rag documents, chaining them together, and incorporating branching for greater flexibility and adaptability."
17
 
18
 
19
 
@@ -211,11 +211,11 @@ with gr.Blocks() as demo:
211
  gr.HTML(html_content)
212
  with gr.Tab("Router-Chain-Branch"):
213
  gr.Markdown(titleRAG)
214
- gr.Markdown(titleRAG)
215
  with gr.Row():
216
  with gr.Column():
217
  contextRAG = gr.TextArea(label="Context" , value=document)
218
- ragDocuments = gr.TextArea(label="Comma Seperated RAG" , value="paneer,chicken,breakfast")
219
  findRAGDocument = gr.Button("Detect Document")
220
  rag = gr.TextArea(label="Rag Document to Look for")
221
  findRAGDocument.click(detectRag, inputs=[contextRAG,ragDocuments], outputs=rag)
 
13
  description = "1)Put your context (could be any topic)</br> 2) Create Questions, </br> 3) Summarize </br>4) Detect Hallucination ( differece between Summary and Context) ."
14
  description2 = "Detect Hallucination using NLI ."
15
  titleRAG = "<h1 style='text-align: center; color: #333333; font-size: 40px;'> Routing , Chaining and Branching of RAG documents </h1>"
16
+ description3 = " This (experimental) novel approach involves creating a router across multiple Rag documents, chaining them together, and incorporating branching for greater flexibility and adaptability."
17
 
18
 
19
 
 
211
  gr.HTML(html_content)
212
  with gr.Tab("Router-Chain-Branch"):
213
  gr.Markdown(titleRAG)
214
+ gr.Markdown(description3)
215
  with gr.Row():
216
  with gr.Column():
217
  contextRAG = gr.TextArea(label="Context" , value=document)
218
+ ragDocuments = gr.TextArea(label="Comma Seperated RAG (exactly 4)" , value="paneer,chicken,breakfast,dosa")
219
  findRAGDocument = gr.Button("Detect Document")
220
  rag = gr.TextArea(label="Rag Document to Look for")
221
  findRAGDocument.click(detectRag, inputs=[contextRAG,ragDocuments], outputs=rag)