Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,9 +1,9 @@
|
|
| 1 |
from transformers import pipeline
|
|
|
|
| 2 |
pipeline = pipeline("text-classification" , model = "ProsusAI/finbert")
|
| 3 |
|
| 4 |
def predict(input_text):
|
| 5 |
predictions = pipeline(input_text )
|
| 6 |
-
print(predictions)
|
| 7 |
return predictions[0]
|
| 8 |
|
| 9 |
|
|
|
|
| 1 |
from transformers import pipeline
|
| 2 |
+
import gradio as gr
|
| 3 |
pipeline = pipeline("text-classification" , model = "ProsusAI/finbert")
|
| 4 |
|
| 5 |
def predict(input_text):
|
| 6 |
predictions = pipeline(input_text )
|
|
|
|
| 7 |
return predictions[0]
|
| 8 |
|
| 9 |
|