Gbenga Awodokun commited on
Commit
32f92d6
·
1 Parent(s): 8d4512f

Add application file

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -324,9 +324,9 @@ def grade_documents(state):
324
 
325
  def web_search(state):
326
  """Web search based on the question"""
327
- print("---WEB SEARCH---")
328
  question = state["question"]
329
- documents = state["documents"]
330
 
331
  docs = web_search_tool.invoke({"query": question})
332
  web_results = "\n".join([d["content"] for d in docs])
@@ -555,7 +555,7 @@ def create_gradio_app():
555
  <ul>
556
  <li>What are the types of solutions offered by Wbizmanager?</li>
557
  <li>How can SMBs use Wbizmanager?</li>
558
- <li>What SAP solutions are available?</li>
559
  <li>Tell me about Wragby Solutions services</li>
560
  </ul>
561
  </div>
@@ -595,7 +595,7 @@ demo = create_gradio_app()
595
  demo.launch(
596
  server_name="0.0.0.0",
597
  server_port=7860,
598
- # share=True, # Set to True if you want to create a public link
599
  debug=True
600
  )
601
 
 
324
 
325
  def web_search(state):
326
  """Web search based on the question"""
327
+ print("---WEB SEARCH---", state)
328
  question = state["question"]
329
+ documents = state.get("documents")
330
 
331
  docs = web_search_tool.invoke({"query": question})
332
  web_results = "\n".join([d["content"] for d in docs])
 
555
  <ul>
556
  <li>What are the types of solutions offered by Wbizmanager?</li>
557
  <li>How can SMBs use Wbizmanager?</li>
558
+ <li>What SAP solutions are available from Wragby?</li>
559
  <li>Tell me about Wragby Solutions services</li>
560
  </ul>
561
  </div>
 
595
  demo.launch(
596
  server_name="0.0.0.0",
597
  server_port=7860,
598
+ share=True, # Set to True if you want to create a public link
599
  debug=True
600
  )
601