chatbytes commited on
Commit
e4ea88e
·
verified ·
1 Parent(s): 7dacc63

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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: