DanielViniciusAlves commited on
Commit
fdfa901
·
1 Parent(s): d77b9dd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -15
app.py CHANGED
@@ -1,7 +1,7 @@
1
- # import gradio as gr
2
- import timm
3
- from fastai.vision.all import *
4
- import skimage
5
 
6
  # learn = load_learner('export.pkl')
7
 
@@ -17,17 +17,13 @@ import skimage
17
  # interpretation='default'
18
  # enable_queue=True
19
 
20
- # test = gr.Interface(fn=predict,
21
- # inputs=None,
22
- # outputs="text", title="NLP lesson from FASTAI",
23
- # examples= examples).launch(debug=True, enable_queue=True)
24
- # test.launch()
25
-
26
- import gradio as gr
27
-
28
  def greet(name):
29
  return "Hello " + name + "!"
30
 
31
- demo = gr.Interface(fn=greet, inputs=None, outputs="text")
32
-
33
- demo.launch()
 
 
 
 
 
1
+ import gradio as gr
2
+ # import timm
3
+ # from fastai.vision.all import *
4
+ # import skimage
5
 
6
  # learn = load_learner('export.pkl')
7
 
 
17
  # interpretation='default'
18
  # enable_queue=True
19
 
 
 
 
 
 
 
 
 
20
  def greet(name):
21
  return "Hello " + name + "!"
22
 
23
+ examples = [['Who is Elon Musk?'],['Generate an image of horse running in grassland.'], ['Remove the background of the image.'], ['I am bored.']]
24
+
25
+ test = gr.Interface(fn=greet,
26
+ inputs=None,
27
+ outputs="text", title="NLP lesson from FASTAI",
28
+ examples= examples).launch(debug=True, enable_queue=True)
29
+ test.launch()