Spaces:
Sleeping
Sleeping
app.py
CHANGED
|
@@ -21,12 +21,12 @@ def extract_json(gen_text, n_shot_learning=0):
|
|
| 21 |
return gen_text[start_index:end_index]
|
| 22 |
|
| 23 |
def score_model(model_uri, databricks_token, prompt):
|
| 24 |
-
prompt = "
|
| 25 |
dataset=pd.DataFrame({
|
| 26 |
"model": "debisoft/mpt-7b-awq-tester",
|
| 27 |
-
"prompt":
|
| 28 |
-
"temperature":
|
| 29 |
-
"max_tokens":
|
| 30 |
headers = {
|
| 31 |
"Authorization": f"Bearer {databricks_token}",
|
| 32 |
"Content-Type": "application/json",
|
|
|
|
| 21 |
return gen_text[start_index:end_index]
|
| 22 |
|
| 23 |
def score_model(model_uri, databricks_token, prompt):
|
| 24 |
+
prompt = "Korea is a"
|
| 25 |
dataset=pd.DataFrame({
|
| 26 |
"model": "debisoft/mpt-7b-awq-tester",
|
| 27 |
+
"prompt": prompt,
|
| 28 |
+
"temperature": 0.5,
|
| 29 |
+
"max_tokens": 1000})
|
| 30 |
headers = {
|
| 31 |
"Authorization": f"Bearer {databricks_token}",
|
| 32 |
"Content-Type": "application/json",
|