Update app.py
Browse files
app.py
CHANGED
|
@@ -1,7 +1,8 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
-
# Function for the
|
| 4 |
-
|
|
|
|
| 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
|
| 17 |
-
demo = gr.TabbedInterface([
|
| 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()
|