Perth0603 commited on
Commit
f5bfc06
·
verified ·
1 Parent(s): 9265bd4

Delete README.md

Browse files
Files changed (1) hide show
  1. README.md +0 -28
README.md DELETED
@@ -1,28 +0,0 @@
1
- # Hugging Face Space - Phishing Text Classifier (FastAPI)
2
-
3
- This Space exposes a minimal `/predict` endpoint for your MobileBERT phishing model so the Flutter app can call it reliably.
4
-
5
- ## Files
6
- - app.py - FastAPI app that loads the model and returns `{ label, score }`.
7
- - requirements.txt - Python dependencies.
8
-
9
- ## How to deploy
10
- 1. Create a new Space on Hugging Face (type: FastAPI).
11
- 2. Upload the contents of this `hf_space/` folder to the Space root.
12
- 3. In Space Settings → Variables, add:
13
- - MODEL_ID = Perth0603/phishing-email-mobilebert
14
- 4. Wait for the Space to build and become green. Test:
15
- - GET `/` should return `{ status: ok, model: ... }`
16
- - POST `/predict` with `{ "inputs": "Win an iPhone! Click here" }`
17
-
18
- ## Flutter app config
19
- Set the Space URL in your env file so the app targets the Space instead of the Hosted Inference API:
20
-
21
- ```
22
- {"HF_SPACE_URL":"https://<your-space>.hf.space"}
23
- ```
24
-
25
- Run the app:
26
- ```
27
- flutter run --dart-define-from-file=hf.env.json
28
- ```