Add API
Browse files
app.py
CHANGED
|
@@ -19,6 +19,8 @@ import folium
|
|
| 19 |
import xml.etree.ElementTree as ET
|
| 20 |
from fastapi import FastAPI, HTTPException
|
| 21 |
from urllib.parse import unquote
|
|
|
|
|
|
|
| 22 |
|
| 23 |
class FileUrlRequest(BaseModel):
|
| 24 |
url: HttpUrl
|
|
|
|
| 19 |
import xml.etree.ElementTree as ET
|
| 20 |
from fastapi import FastAPI, HTTPException
|
| 21 |
from urllib.parse import unquote
|
| 22 |
+
from pydantic import BaseModel, HttpUrl
|
| 23 |
+
|
| 24 |
|
| 25 |
class FileUrlRequest(BaseModel):
|
| 26 |
url: HttpUrl
|