Habiba A. Elbehairy commited on
Commit ·
6f28cfd
1
Parent(s): b19ac71
edit
Browse files
app.py
CHANGED
|
@@ -36,7 +36,9 @@ class SimilarityInput(BaseModel):
|
|
| 36 |
source_code: SourceCode
|
| 37 |
test_case_1: TestCase
|
| 38 |
test_case_2: TestCase
|
| 39 |
-
|
|
|
|
|
|
|
| 40 |
async def predict(data: SimilarityInput):
|
| 41 |
"""
|
| 42 |
Predict similarity class between two test cases for a given source class.
|
|
|
|
| 36 |
source_code: SourceCode
|
| 37 |
test_case_1: TestCase
|
| 38 |
test_case_2: TestCase
|
| 39 |
+
|
| 40 |
+
|
| 41 |
+
@app.post("/predict")
|
| 42 |
async def predict(data: SimilarityInput):
|
| 43 |
"""
|
| 44 |
Predict similarity class between two test cases for a given source class.
|