Spaces:
Runtime error
Runtime error
Lambang
commited on
Commit
·
e66d0bb
1
Parent(s):
4a677e7
ubag
Browse files
main.py
CHANGED
@@ -105,13 +105,7 @@ def run_ngrok():
|
|
105 |
@app.get("/")
|
106 |
async def root():
|
107 |
# Dapatkan URL publik dari ngrok
|
108 |
-
|
109 |
-
try:
|
110 |
-
ngrok_url = subprocess.check_output(['ngrok', 'http', '8000']).decode('utf-8').strip()
|
111 |
-
except Exception as e:
|
112 |
-
print(f"Error getting ngrok URL: {e}")
|
113 |
-
|
114 |
-
return {"message": "Hello, World!", "ngrok_url": ngrok_url}
|
115 |
|
116 |
# -------------------------------------------------------------------------
|
117 |
# API UNTUK MELAKUKAN PROSES PREDIKSI
|
|
|
105 |
@app.get("/")
|
106 |
async def root():
|
107 |
# Dapatkan URL publik dari ngrok
|
108 |
+
return {"message": "Server berfungsi ya ges ya"}
|
|
|
|
|
|
|
|
|
|
|
|
|
109 |
|
110 |
# -------------------------------------------------------------------------
|
111 |
# API UNTUK MELAKUKAN PROSES PREDIKSI
|