Spaces:
Runtime error
Runtime error
File size: 333 Bytes
880a3ee 97efcb8 880a3ee 97efcb8 880a3ee 97efcb8 880a3ee |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
from fastapi import FastAPI
import pickle
import uvicorn
import pandas as pd
app = FastAPI()
#Endpoints
#Root endpoints
@app.get("/")
async def root():
# Dapatkan URL publik dari ngrok
ngrok_url = "Tidak Ada URL Publik (ngrok belum selesai memulai)"
return {"message": "Hello, World!", "ngrok_url": ngrok_url}
|