Update app.py
Browse files
app.py
CHANGED
|
@@ -100,6 +100,11 @@ class BasicAgent:
|
|
| 100 |
|
| 101 |
def download_and_detect_file(url: str):
|
| 102 |
try:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 103 |
# Download the file
|
| 104 |
response = requests.get(url)
|
| 105 |
response.raise_for_status() # Raise error if download failed
|
|
|
|
| 100 |
|
| 101 |
def download_and_detect_file(url: str):
|
| 102 |
try:
|
| 103 |
+
mime_type_xlsx = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
|
| 104 |
+
mime_type_txt = "text/plain"
|
| 105 |
+
mime_type_mp3 = "audio/mpeg"
|
| 106 |
+
mime_type_jpg = "image/jpeg"
|
| 107 |
+
mime_type_png = "image/png"
|
| 108 |
# Download the file
|
| 109 |
response = requests.get(url)
|
| 110 |
response.raise_for_status() # Raise error if download failed
|