mmathys commited on
Commit
87823a5
1 Parent(s): f6bcba8
Files changed (1) hide show
  1. app.py +2 -11
app.py CHANGED
@@ -1,11 +1,3 @@
1
- #%%
2
- import gradio as gr
3
-
4
- def greet(name):
5
- return "Hello " + name + "!!"
6
-
7
- iface = gr.Interface(fn=greet, inputs="text", outputs="text")
8
- iface.launch()
9
  # %%
10
  import gradio as gr
11
 
@@ -14,7 +6,7 @@ def sentence_builder(model, dataset):
14
  return f"Model card for {model} and {dataset}."
15
 
16
 
17
- demo = gr.Interface(
18
  sentence_builder,
19
  [
20
  gr.Dropdown(
@@ -40,5 +32,4 @@ demo = gr.Interface(
40
  ]
41
  )
42
 
43
- if __name__ == "__main__":
44
- demo.launch()
 
 
 
 
 
 
 
 
 
1
  # %%
2
  import gradio as gr
3
 
 
6
  return f"Model card for {model} and {dataset}."
7
 
8
 
9
+ iface = gr.Interface(
10
  sentence_builder,
11
  [
12
  gr.Dropdown(
 
32
  ]
33
  )
34
 
35
+ iface.launch()