thelip commited on
Commit
f192afa
Β·
verified Β·
1 Parent(s): c4868a7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -3,6 +3,10 @@ import gradio as gr
3
  def greet(name):
4
  return "Hello " + name + "!"
5
 
6
- demo = gr.Interface(fn=greet, inputs="textbox", outputs="textbox")
 
 
 
 
7
 
8
  demo.launch(share=True) # Share your demo with just 1 extra parameter πŸš€
 
3
  def greet(name):
4
  return "Hello " + name + "!"
5
 
6
+ demo = gr.Interface(lambda x: x, "image", "image")
7
+
8
+ demo.launch(max_file_size="5mb")
9
+ # or
10
+ demo.launch(max_file_size=5 * gr.FileSize.MB)
11
 
12
  demo.launch(share=True) # Share your demo with just 1 extra parameter πŸš€