akariasai commited on
Commit
bb15fb1
1 Parent(s): 088e9be

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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", 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] "
 
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] "