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