marcellohalfeld commited on
Commit
2e14bfe
1 Parent(s): 3176bad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,6 +1,6 @@
1
  from transformers import pipeline
2
  import gradio as gr
3
 
4
- pipe = pipeline("image-to-text", model="facebook/nougat-base")
5
 
6
- gr.Interface.from_pipeline(pipe).launch()
 
1
  from transformers import pipeline
2
  import gradio as gr
3
 
4
+ pipe = pipeline("image-to-text", model="facebook/nougat-base", max_new_tokens=100)
5
 
6
+ gr.Interface.from_pipeline(pipe).title("marcello").launch()