Spaces:
Sleeping
Sleeping
Neurolingua
commited on
Update other_function.py
Browse files- other_function.py +2 -2
other_function.py
CHANGED
@@ -191,8 +191,8 @@ def extract_text_from_pdf(pdf_path):
|
|
191 |
return pdf_text
|
192 |
|
193 |
|
194 |
-
def respond_pdf(
|
195 |
-
|
196 |
res = ''
|
197 |
for chunk in AI71(AI71_API_KEY).chat.completions.create(
|
198 |
model="tiiuae/falcon-11b",
|
|
|
191 |
return pdf_text
|
192 |
|
193 |
|
194 |
+
def respond_pdf(query):
|
195 |
+
extracted_text=pdf_text
|
196 |
res = ''
|
197 |
for chunk in AI71(AI71_API_KEY).chat.completions.create(
|
198 |
model="tiiuae/falcon-11b",
|