Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ huggingface_hub.login(token=os.environ["HF_TOKEN"])
|
|
9 |
# Fava prompt
|
10 |
INPUT = "Read the following references:\n{evidence}\nPlease identify all the errors in the following text using the information in the references provided and suggest edits if necessary:\n[Text] {output}\n[Edited] "
|
11 |
|
12 |
-
model = vllm.LLM(model="uw-
|
13 |
def result(passage, reference):
|
14 |
prompt = [INPUT.format_map({"evidence":reference, "output":passage})]
|
15 |
print(prompt)
|
|
|
9 |
# Fava prompt
|
10 |
INPUT = "Read the following references:\n{evidence}\nPlease identify all the errors in the following text using the information in the references provided and suggest edits if necessary:\n[Text] {output}\n[Edited] "
|
11 |
|
12 |
+
model = vllm.LLM(model="fava-uw/fava-model")
|
13 |
def result(passage, reference):
|
14 |
prompt = [INPUT.format_map({"evidence":reference, "output":passage})]
|
15 |
print(prompt)
|