Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
|
|
2 |
|
3 |
from transformers import pipeline
|
4 |
|
5 |
-
pipe = pipeline("
|
6 |
|
7 |
def predict(text):
|
8 |
return pipe(text)[0]["translation_text"]
|
|
|
2 |
|
3 |
from transformers import pipeline
|
4 |
|
5 |
+
pipe = pipeline("Text Classification", model="Marmoot/electricidad-base-generator-fake-news")
|
6 |
|
7 |
def predict(text):
|
8 |
return pipe(text)[0]["translation_text"]
|