tlkh commited on
Commit
c92a2d6
·
1 Parent(s): 7c5299d
Files changed (2) hide show
  1. .ipynb_checkpoints/app-checkpoint.py +6 -2
  2. app.py +6 -2
.ipynb_checkpoints/app-checkpoint.py CHANGED
@@ -31,9 +31,13 @@ example1 = ["On Monday, Tom went to the market.","Tom went to the market on Mond
31
  s1 = gr.Textbox(value="One",label="Sentence 1")
32
  s2 = gr.Textbox(value="Two",label="Sentence 2")
33
 
 
 
 
 
 
34
  demo = gr.Interface(fn=infer, inputs=[s1,s2], outputs="text",
35
- examples=gr.Examples(examples=[[["one"],["two"]],],
36
- inputs=[s1,s2]),
37
  title=title,
38
  description=desc,
39
  article=long_desc)
 
31
  s1 = gr.Textbox(value="One",label="Sentence 1")
32
  s2 = gr.Textbox(value="Two",label="Sentence 2")
33
 
34
+ examples = gr.Examples(examples=[["prompt_1", "prompt_1"],
35
+ ["prompt_2", "prompt_2"],
36
+ ["prompt_3", "prompt_3"],],
37
+ inputs=[s1, s2])
38
+
39
  demo = gr.Interface(fn=infer, inputs=[s1,s2], outputs="text",
40
+ examples=examples,
 
41
  title=title,
42
  description=desc,
43
  article=long_desc)
app.py CHANGED
@@ -31,9 +31,13 @@ example1 = ["On Monday, Tom went to the market.","Tom went to the market on Mond
31
  s1 = gr.Textbox(value="One",label="Sentence 1")
32
  s2 = gr.Textbox(value="Two",label="Sentence 2")
33
 
 
 
 
 
 
34
  demo = gr.Interface(fn=infer, inputs=[s1,s2], outputs="text",
35
- examples=gr.Examples(examples=[[["one"],["two"]],],
36
- inputs=[s1,s2]),
37
  title=title,
38
  description=desc,
39
  article=long_desc)
 
31
  s1 = gr.Textbox(value="One",label="Sentence 1")
32
  s2 = gr.Textbox(value="Two",label="Sentence 2")
33
 
34
+ examples = gr.Examples(examples=[["prompt_1", "prompt_1"],
35
+ ["prompt_2", "prompt_2"],
36
+ ["prompt_3", "prompt_3"],],
37
+ inputs=[s1, s2])
38
+
39
  demo = gr.Interface(fn=infer, inputs=[s1,s2], outputs="text",
40
+ examples=examples,
 
41
  title=title,
42
  description=desc,
43
  article=long_desc)