Spaces:
Sleeping
Sleeping
Commit
·
2792e5a
1
Parent(s):
d952a61
chore: update test prediction for QA
Browse files- test_prediction.py +7 -5
test_prediction.py
CHANGED
@@ -4,12 +4,14 @@ import utilities as us
|
|
4 |
|
5 |
def main():
|
6 |
model = ModelPrediction()
|
7 |
-
response = model.make_prediction(
|
|
|
|
|
|
|
|
|
|
|
8 |
print(response) # dict[response, response_parsed, cost]
|
9 |
|
10 |
|
11 |
if __name__ == "__main__":
|
12 |
-
|
13 |
-
us.check_and_create_dir('data/data_interface/')
|
14 |
-
us.check_and_create_dir('data/data_results/')
|
15 |
-
us.check_and_create_dir('data/databases/')
|
|
|
4 |
|
5 |
def main():
|
6 |
model = ModelPrediction()
|
7 |
+
response = model.make_prediction(
|
8 |
+
question='What is the surnamname of Simone',
|
9 |
+
db_schema='CREATE TABLE Player(Name, Age)\nINSERT INTO Player(Name, Age) VALUES (Simone, Papicchio)',
|
10 |
+
model_name="gpt-3.5",
|
11 |
+
task='QA'
|
12 |
+
)
|
13 |
print(response) # dict[response, response_parsed, cost]
|
14 |
|
15 |
|
16 |
if __name__ == "__main__":
|
17 |
+
main()
|
|
|
|
|
|