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