MarkNCI
commited on
Commit
•
c76196d
1
Parent(s):
d5d1a7e
Add Pickle
Browse files
app.py
CHANGED
@@ -23,6 +23,9 @@ import pickle
|
|
23 |
from transformers import pipeline
|
24 |
import gradio as gr
|
25 |
|
|
|
|
|
|
|
26 |
|
27 |
# QA pipeline setup
|
28 |
from transformers import AutoTokenizer, TFAutoModelForQuestionAnswering
|
|
|
23 |
from transformers import pipeline
|
24 |
import gradio as gr
|
25 |
|
26 |
+
with open('file.pkl', 'rb') as file:
|
27 |
+
# Call load method to deserialze
|
28 |
+
df = pickle.load(file)
|
29 |
|
30 |
# QA pipeline setup
|
31 |
from transformers import AutoTokenizer, TFAutoModelForQuestionAnswering
|