Spaces:
Runtime error
Runtime error
khanfou
commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -37,11 +37,11 @@ with st.form("patent-form"):
|
|
| 37 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
| 38 |
classifier = pipeline("sentiment-analysis", model=model, tokenizer=tokenizer)
|
| 39 |
|
| 40 |
-
|
| 41 |
|
| 42 |
-
decision = df['decision'].loc[df['patent_number'] == make_choice]
|
| 43 |
-
|
| 44 |
-
X_train = decision.to_string()
|
| 45 |
#X_train = abstract.values.tolist()
|
| 46 |
results = classifier(X_train, truncation=True)
|
| 47 |
#result = hupd_model(make_choice)[0]
|
|
|
|
| 37 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
| 38 |
classifier = pipeline("sentiment-analysis", model=model, tokenizer=tokenizer)
|
| 39 |
|
| 40 |
+
abstract = df['abstract'].loc[df['patent_number'] == make_choice]
|
| 41 |
|
| 42 |
+
#decision = df['decision'].loc[df['patent_number'] == make_choice]
|
| 43 |
+
X_train = abstract.to_string()
|
| 44 |
+
#X_train = decision.to_string()
|
| 45 |
#X_train = abstract.values.tolist()
|
| 46 |
results = classifier(X_train, truncation=True)
|
| 47 |
#result = hupd_model(make_choice)[0]
|