Geraldine commited on
Commit
3a6e888
1 Parent(s): 0d895df

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -1,6 +1,9 @@
 
1
  from transformers import pipeline
2
  import gradio as gr
3
 
 
 
4
  pipe = pipeline("text-generation", model="bigscience/bloom")
5
 
6
  input_file = gr.inputs.File(label="Upload PDF file")
 
1
+ import os
2
  from transformers import pipeline
3
  import gradio as gr
4
 
5
+ os.environ["HUGGINGFACEHUB_API_TOKEN"] = HUGGINGFACEHUB_API_TOKEN
6
+
7
  pipe = pipeline("text-generation", model="bigscience/bloom")
8
 
9
  input_file = gr.inputs.File(label="Upload PDF file")