Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,7 +3,6 @@ from fastapi.responses import JSONResponse
|
|
| 3 |
import pandas as pd
|
| 4 |
from io import StringIO
|
| 5 |
import json
|
| 6 |
-
import uvicorn
|
| 7 |
|
| 8 |
from preprocess_test import Preprocess_Test
|
| 9 |
|
|
@@ -168,13 +167,4 @@ async def api_inference(
|
|
| 168 |
"rows": int(df.shape[0]),
|
| 169 |
"columns": int(df.shape[1]),
|
| 170 |
"model_results": results,
|
| 171 |
-
}
|
| 172 |
-
|
| 173 |
-
|
| 174 |
-
if __name__ == "__main__":
|
| 175 |
-
uvicorn.run(
|
| 176 |
-
"main:app", # Change "main" to your actual filename if different
|
| 177 |
-
host="0.0.0.0",
|
| 178 |
-
port=7860,
|
| 179 |
-
reload=True # Equivalent to Flask's debug=True
|
| 180 |
-
)
|
|
|
|
| 3 |
import pandas as pd
|
| 4 |
from io import StringIO
|
| 5 |
import json
|
|
|
|
| 6 |
|
| 7 |
from preprocess_test import Preprocess_Test
|
| 8 |
|
|
|
|
| 167 |
"rows": int(df.shape[0]),
|
| 168 |
"columns": int(df.shape[1]),
|
| 169 |
"model_results": results,
|
| 170 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|