chenluuli commited on
Commit
89be006
·
verified ·
1 Parent(s): 08b1e2f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +20 -18
app.py CHANGED
@@ -33,21 +33,23 @@ def initClient():
33
 
34
  def greet(name):
35
  return "Hello " + name + "!!"
36
-
37
- title = "demo"
38
- description = "Gradio Demo for custom demo"
39
- # examples = [
40
- # ["The tower is 324 metres (1,063 ft) tall,"],
41
- # ["The Moon's orbit around Earth has"],
42
- # ["The smooth Borealis basin in the Northern Hemisphere covers 40%"],
43
- # ]
44
- gr.Interface.load(
45
- "huggingface/chenluuli/test-text-vis",
46
- inputs=gr.Textbox(lines=5, label="Input Text"),
47
- outputs="text",
48
- #title=title,
49
- #description=description,
50
- # article=article,
51
- # examples=examples,
52
- #enable_queue=True,
53
- ).launch()
 
 
 
33
 
34
  def greet(name):
35
  return "Hello " + name + "!!"
36
+
37
+ demo = gr.Interface(fn=greet, inputs="text", outputs="text")
38
+ demo.launch()
39
+ # title = "demo"
40
+ # description = "Gradio Demo for custom demo"
41
+ # # examples = [
42
+ # # ["The tower is 324 metres (1,063 ft) tall,"],
43
+ # # ["The Moon's orbit around Earth has"],
44
+ # # ["The smooth Borealis basin in the Northern Hemisphere covers 40%"],
45
+ # # ]
46
+ # gr.Interface.load(
47
+ # "huggingface/chenluuli/test-text-vis",
48
+ # inputs=gr.Textbox(lines=5, label="Input Text"),
49
+ # outputs="text",
50
+ # #title=title,
51
+ # #description=description,
52
+ # # article=article,
53
+ # # examples=examples,
54
+ # #enable_queue=True,
55
+ # ).launch()