Spaces:
Runtime error
Runtime error
Cynthiaaaaaaaa
commited on
Commit
•
33c8ccf
1
Parent(s):
bfadcb1
Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,14 @@
|
|
1 |
|
2 |
-
|
3 |
-
|
|
|
|
|
|
|
|
|
4 |
from transformers import pipeline
|
5 |
|
|
|
|
|
6 |
|
7 |
# Summarization
|
8 |
def summarization(text):
|
|
|
1 |
|
2 |
+
import subprocess
|
3 |
+
|
4 |
+
# Install transformers package
|
5 |
+
subprocess.run(['pip', 'install', 'transformers'])
|
6 |
+
|
7 |
+
# Import transformers module
|
8 |
from transformers import pipeline
|
9 |
|
10 |
+
import streamlit as st
|
11 |
+
|
12 |
|
13 |
# Summarization
|
14 |
def summarization(text):
|