wenpeng commited on
Commit
c254fe8
·
2 Parent(s): c7813b3729ce3f
Files changed (1) hide show
  1. app.py +11 -1
app.py CHANGED
@@ -1,3 +1,4 @@
 
1
  from doctest import Example
2
  import gradio as gr
3
  import inpaint.infer_model as inpaint
@@ -20,4 +21,13 @@ def sod_inpaint(img):
20
  return res[:,:,::-1]
21
 
22
  iface = gr.Interface(fn=sod_inpaint, inputs="image", outputs="image", examples='examples', title='显著物体消除', description='这是一个图像API,功能是自动把画面中的显著物体消除', theme='huggingface')
23
- iface.launch(server_name='0.0.0.0', share=False)
 
 
 
 
 
 
 
 
 
 
1
+ <<<<<<< HEAD
2
  from doctest import Example
3
  import gradio as gr
4
  import inpaint.infer_model as inpaint
 
21
  return res[:,:,::-1]
22
 
23
  iface = gr.Interface(fn=sod_inpaint, inputs="image", outputs="image", examples='examples', title='显著物体消除', description='这是一个图像API,功能是自动把画面中的显著物体消除', theme='huggingface')
24
+ iface.launch(server_name='0.0.0.0', share=False)
25
+ =======
26
+ import gradio as gr
27
+
28
+ def greet(name):
29
+ return "Hello " + name + "!!"
30
+
31
+ iface = gr.Interface(fn=greet, inputs="text", outputs="text")
32
+ iface.launch()
33
+ >>>>>>> origin/main