Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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")
|