Spaces:
Runtime error
Runtime error
rohanphadke
commited on
Commit
•
1677649
1
Parent(s):
afdc6bc
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,9 @@
|
|
1 |
import gradio as gr
|
|
|
|
|
|
|
|
|
|
|
2 |
|
3 |
def greet(name):
|
4 |
return "Hello " + name + "!!"
|
|
|
1 |
import gradio as gr
|
2 |
+
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
3 |
+
|
4 |
+
pretrained = "rohanphadke/roberta-finetuned-triplebottomline"
|
5 |
+
tokenizer = AutoTokenizer.from_pretrained(pretrained)
|
6 |
+
model = AutoModelForSequenceClassification.from_pretrained(pretrained)
|
7 |
|
8 |
def greet(name):
|
9 |
return "Hello " + name + "!!"
|