Spaces:
Paused
Paused
debatelab-admin
commited on
Commit
•
df6b3b2
1
Parent(s):
5f0f7eb
try pipeline
Browse files- app.py +5 -3
- requirements.txt +3 -1
app.py
CHANGED
@@ -4,11 +4,12 @@ import json
|
|
4 |
import textwrap
|
5 |
import re
|
6 |
|
7 |
-
import streamlit as st
|
8 |
-
from spacy import displacy
|
9 |
import graphviz
|
10 |
import requests
|
11 |
import seaborn as sns
|
|
|
|
|
|
|
12 |
|
13 |
import aaac_util as aaac
|
14 |
|
@@ -270,7 +271,8 @@ def run_model(mode_set, user_input):
|
|
270 |
"""
|
271 |
|
272 |
|
273 |
-
inference = build_inference_api()
|
|
|
274 |
|
275 |
current_input = user_input.copy()
|
276 |
output = []
|
|
|
4 |
import textwrap
|
5 |
import re
|
6 |
|
|
|
|
|
7 |
import graphviz
|
8 |
import requests
|
9 |
import seaborn as sns
|
10 |
+
import streamlit as st
|
11 |
+
from spacy import displacy
|
12 |
+
from transformers import pipeline
|
13 |
|
14 |
import aaac_util as aaac
|
15 |
|
|
|
271 |
"""
|
272 |
|
273 |
|
274 |
+
#inference = build_inference_api()
|
275 |
+
inference = pipeline(task="text2text-generation", model=MODEL)
|
276 |
|
277 |
current_input = user_input.copy()
|
278 |
output = []
|
requirements.txt
CHANGED
@@ -2,4 +2,6 @@ spacy==2.1.9
|
|
2 |
seaborn==0.11.1
|
3 |
graphviz==0.16
|
4 |
pyparsing==2.4.7
|
5 |
-
z3-solver==4.8.10.0
|
|
|
|
|
|
2 |
seaborn==0.11.1
|
3 |
graphviz==0.16
|
4 |
pyparsing==2.4.7
|
5 |
+
z3-solver==4.8.10.0
|
6 |
+
transformers
|
7 |
+
torch
|