Update app.py
Browse files
app.py
CHANGED
@@ -47,11 +47,11 @@ def text_extract(file):
|
|
47 |
qa = RetrievalQA.from_chain_type(
|
48 |
llm=llm, chain_type="stuff", retriever=retriever, return_source_documents=True
|
49 |
)
|
50 |
-
result1 = qa.invoke(({"how r u"}))
|
51 |
-
print("FitBot:",result1['result'])
|
52 |
# Split extracted text into chunks
|
53 |
# result = helper(text_splitter) # Call helper to process text chunks
|
54 |
-
return result1['result']
|
55 |
|
56 |
# Define Gradio interface
|
57 |
with gr.Blocks() as demo:
|
|
|
47 |
qa = RetrievalQA.from_chain_type(
|
48 |
llm=llm, chain_type="stuff", retriever=retriever, return_source_documents=True
|
49 |
)
|
50 |
+
# result1 = qa.invoke(({"how r u"}))
|
51 |
+
# print("FitBot:",result1['result'])
|
52 |
# Split extracted text into chunks
|
53 |
# result = helper(text_splitter) # Call helper to process text chunks
|
54 |
+
return "result1['result']"
|
55 |
|
56 |
# Define Gradio interface
|
57 |
with gr.Blocks() as demo:
|