CarlosMF HF staff commited on
Commit
ac52d9f
·
1 Parent(s): e58c21f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,7 +1,7 @@
1
  import gradio as gr
2
  from transformers import pipeline
3
 
4
- pipeline = pipeline(task="translation", model="bigscience/bloom-350m")
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="Translation",
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()