Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -46,7 +46,7 @@ def get_file_path(question: str) -> str:
|
|
| 46 |
|
| 47 |
def get_ref_content(path: str) -> str | object:
|
| 48 |
"""Retrieves content from the reference path provided."""
|
| 49 |
-
if path.startswith('http
|
| 50 |
file = requests.get(path).content
|
| 51 |
else:
|
| 52 |
with open(path, "rb") as f:
|
|
|
|
| 46 |
|
| 47 |
def get_ref_content(path: str) -> str | object:
|
| 48 |
"""Retrieves content from the reference path provided."""
|
| 49 |
+
if path.startswith('http'):
|
| 50 |
file = requests.get(path).content
|
| 51 |
else:
|
| 52 |
with open(path, "rb") as f:
|