Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ import requests
|
|
5 |
|
6 |
from typing import List, Dict, Union
|
7 |
import requests
|
8 |
-
import wikipediaapi
|
9 |
#import google.generativeai as genai
|
10 |
from typing import List, Dict, Union
|
11 |
import requests
|
@@ -70,10 +70,10 @@ class BasicAgent:
|
|
70 |
except requests.RequestException:
|
71 |
return []
|
72 |
|
73 |
-
def wikipedia_search(self, query: str) -> str:
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
|
78 |
def process_document(self, file_path: str) -> str:
|
79 |
"""Handle PDF, Word, CSV, Excel files"""
|
|
|
5 |
|
6 |
from typing import List, Dict, Union
|
7 |
import requests
|
8 |
+
#import wikipediaapi
|
9 |
#import google.generativeai as genai
|
10 |
from typing import List, Dict, Union
|
11 |
import requests
|
|
|
70 |
except requests.RequestException:
|
71 |
return []
|
72 |
|
73 |
+
#def wikipedia_search(self, query: str) -> str:
|
74 |
+
# """Get Wikipedia summary"""
|
75 |
+
# page = self.wiki.page(query)
|
76 |
+
# return page.summary if page.exists() else "No Wikipedia page found"
|
77 |
|
78 |
def process_document(self, file_path: str) -> str:
|
79 |
"""Handle PDF, Word, CSV, Excel files"""
|