Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -80,7 +80,7 @@ def get_current_time_in_timezone(timezone: str) -> str:
|
|
| 80 |
embedding_model = SentenceTransformer("sentence-transformers/all-MiniLM-L6-v2")
|
| 81 |
qa_pipeline = pipeline("text2text-generation", model="google/flan-t5-base")
|
| 82 |
|
| 83 |
-
@tool(name=document_qna_tool)
|
| 84 |
def document_qna_tool(pdf_path: str, question: str) -> str:
|
| 85 |
"""
|
| 86 |
A tool that answers natural language questions about a given PDF document.
|
|
|
|
| 80 |
embedding_model = SentenceTransformer("sentence-transformers/all-MiniLM-L6-v2")
|
| 81 |
qa_pipeline = pipeline("text2text-generation", model="google/flan-t5-base")
|
| 82 |
|
| 83 |
+
@tool(name="document_qna_tool")
|
| 84 |
def document_qna_tool(pdf_path: str, question: str) -> str:
|
| 85 |
"""
|
| 86 |
A tool that answers natural language questions about a given PDF document.
|