Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ import huggingface_hub
|
|
5 |
import os
|
6 |
|
7 |
huggingface_hub.login(token=os.environ["HF_TOKEN"])
|
8 |
-
hf_writer = gradio.HuggingFaceDatasetSaver(os.environ["HF_WRITE_TOKEN"], "fava-flagged-demo")
|
9 |
|
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] "
|
|
|
5 |
import os
|
6 |
|
7 |
huggingface_hub.login(token=os.environ["HF_TOKEN"])
|
8 |
+
hf_writer = gradio.HuggingFaceDatasetSaver(os.environ["HF_WRITE_TOKEN"], "fava-flagged-demo", add_to_git_credential=True)
|
9 |
|
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] "
|