Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,19 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: mit
|
| 3 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
---
|
| 4 |
+
|
| 5 |
+
## start the web server
|
| 6 |
+
|
| 7 |
+
python -m uvicorn sft_fastapi:app --host 0.0.0.0 --port 8000
|
| 8 |
+
|
| 9 |
+
## send request to the server
|
| 10 |
+
|
| 11 |
+
curl http://localhost:8000/health
|
| 12 |
+
|
| 13 |
+
curl -X POST http://localhost:8000/recommend \
|
| 14 |
+
-H "Content-Type: application/json" \
|
| 15 |
+
-d '{
|
| 16 |
+
"sequent": "{1} FORALL (A, B: simple_polygon_2d, j: below(A`num_vertices), i: nat): LET IV = injected_vertices(A, B, A`num_vertices), s = edges_of_polygon(A)(j), L = injected_vertices(A, B, j)`length, Q = injected_edge_seq(s, injected_edge(s, B)) IN i < IV`length AND i >= L AND i < Q`length + L IMPLIES IV`seq(i) = Q`seq(i - L)",
|
| 17 |
+
"prev_commands": ["None", "None", "None"],
|
| 18 |
+
"top_k": 3
|
| 19 |
+
}'
|