kivilaid commited on
Commit
9a28ed0
·
1 Parent(s): 0c83748

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -1,7 +1,8 @@
1
  import gradio as gr
2
 
3
- # Function for the Hello World interface
4
- hello_world = gr.Interface(lambda name: "Hello " + name, "text", "text")
 
5
 
6
  # Function for the Should we translate? interface
7
  def check_input(input_string):
@@ -13,8 +14,8 @@ def check_input(input_string):
13
 
14
  should_we_translate = gr.Interface(check_input, "text", "text")
15
 
16
- # Creating a Tabbed Interface without the Statistics tab
17
- demo = gr.TabbedInterface([hello_world, should_we_translate], ["Minify", "Should we translate?"])
18
 
19
  if __name__ == "__main__":
20
  demo.launch()
 
1
  import gradio as gr
2
 
3
+ # Function for the Minify interface
4
+ minify = gr.Interface(lambda name: "Hello " + name, "text", "text")
5
+ gr.File()
6
 
7
  # Function for the Should we translate? interface
8
  def check_input(input_string):
 
14
 
15
  should_we_translate = gr.Interface(check_input, "text", "text")
16
 
17
+ # Creating a Tabbed Interface with updated tab names
18
+ demo = gr.TabbedInterface([minify, should_we_translate], ["Minify", "Should we translate?"])
19
 
20
  if __name__ == "__main__":
21
  demo.launch()