Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ hf_writer = gradio.HuggingFaceDatasetSaver(os.environ["HF_WRITE_TOKEN"], "fava-f
|
|
10 |
# Fava prompt
|
11 |
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] "
|
12 |
|
13 |
-
model = vllm.LLM(model="
|
14 |
def result(passage, reference):
|
15 |
prompt = [INPUT.format_map({"evidence":reference, "output":passage})]
|
16 |
print(prompt)
|
|
|
10 |
# Fava prompt
|
11 |
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] "
|
12 |
|
13 |
+
model = vllm.LLM(model="fava-uw/fava-model")
|
14 |
def result(passage, reference):
|
15 |
prompt = [INPUT.format_map({"evidence":reference, "output":passage})]
|
16 |
print(prompt)
|