Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,11 @@
|
|
1 |
import gradio as gr
|
2 |
from huggingface_hub import InferenceClient
|
3 |
from transformers import RagTokenizer, RagRetriever
|
|
|
|
|
|
|
|
|
|
|
4 |
|
5 |
"""
|
6 |
For more information on huggingface_hub Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
|
|
|
1 |
import gradio as gr
|
2 |
from huggingface_hub import InferenceClient
|
3 |
from transformers import RagTokenizer, RagRetriever
|
4 |
+
import datasets
|
5 |
+
|
6 |
+
# Allow the library to execute remote code
|
7 |
+
datasets.utils.disable_progress_bar()
|
8 |
+
datasets.config.TRUST_REMOTE_CODE = True
|
9 |
|
10 |
"""
|
11 |
For more information on huggingface_hub Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
|