Moha782 commited on
Commit
a1ba662
·
verified ·
1 Parent(s): de8c1f9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
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