pminervini commited on
Commit
a98fabb
1 Parent(s): 65126e2
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -151,7 +151,7 @@ def rag_pipeline(prompt, index="pubmed", num_docs=3, model_name="HuggingFaceH4/z
151
 
152
  model = tokenizer = None
153
 
154
- analysed_response = analyse(joined_docs, response)
155
 
156
  # Return the generated text and the documents
157
  return response, analysed_response, joined_docs
@@ -166,7 +166,7 @@ iface = gr.Interface(fn=rag_pipeline,
166
  ],
167
  outputs=[
168
  gr.Textbox(label="Generated Answer"),
169
- gr.Textbox(label="Analysed Answer"),
170
  gr.Textbox(label="Retrieved Documents")
171
  ],
172
  description="Retrieval-Augmented Generation Pipeline")
 
151
 
152
  model = tokenizer = None
153
 
154
+ # analysed_response = analyse(joined_docs, response)
155
 
156
  # Return the generated text and the documents
157
  return response, analysed_response, joined_docs
 
166
  ],
167
  outputs=[
168
  gr.Textbox(label="Generated Answer"),
169
+ # gr.Textbox(label="Analysed Answer"),
170
  gr.Textbox(label="Retrieved Documents")
171
  ],
172
  description="Retrieval-Augmented Generation Pipeline")