sitammeur commited on
Commit
d473761
·
verified ·
1 Parent(s): d5f1d20

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -1,6 +1,6 @@
1
  # Importing the requirements
2
- import warnings
3
- warnings.filterwarnings("ignore")
4
 
5
  import gradio as gr
6
  from src.app.response import describe_image
@@ -32,11 +32,12 @@ interface = gr.Interface(
32
  inputs=[image, question],
33
  outputs=answer,
34
  examples=examples,
35
- cache_examples="lazy",
 
36
  title=title,
37
  description=description,
38
  article=article,
39
  theme="JohnSmith9982/small_and_pretty",
40
- allow_flagging="never",
41
  )
42
  interface.launch(debug=False)
 
1
  # Importing the requirements
2
+ # import warnings
3
+ # warnings.filterwarnings("ignore")
4
 
5
  import gradio as gr
6
  from src.app.response import describe_image
 
32
  inputs=[image, question],
33
  outputs=answer,
34
  examples=examples,
35
+ cache_examples=True,
36
+ cache_mode="lazy",
37
  title=title,
38
  description=description,
39
  article=article,
40
  theme="JohnSmith9982/small_and_pretty",
41
+ flagging_mode="never",
42
  )
43
  interface.launch(debug=False)