Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
from transformers import pipeline
|
3 |
|
4 |
-
pipeline = pipeline(task="
|
5 |
|
6 |
def translate(text):
|
7 |
predictions = pipeline(text)
|
@@ -11,5 +11,5 @@ gr.Interface(
|
|
11 |
predict,
|
12 |
inputs=gr.inputs.Text(label="text", type="filepath"),
|
13 |
outputs=gr.outputs.Label(num_top_classes=2),
|
14 |
-
title="
|
15 |
).launch()
|
|
|
1 |
import gradio as gr
|
2 |
from transformers import pipeline
|
3 |
|
4 |
+
pipeline = pipeline(task="text-generation", model="bigscience/bloom-350m")
|
5 |
|
6 |
def translate(text):
|
7 |
predictions = pipeline(text)
|
|
|
11 |
predict,
|
12 |
inputs=gr.inputs.Text(label="text", type="filepath"),
|
13 |
outputs=gr.outputs.Label(num_top_classes=2),
|
14 |
+
title="Middle Earth Tales",
|
15 |
).launch()
|