ysharma HF staff commited on
Commit
ed301a5
1 Parent(s): 9bbeeb3
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -37,12 +37,16 @@ it took
37
  to blossom.
38
  word: """
39
 
40
- prompt = """
41
  Q: Joy has 5 balls. He buys 2 more cans of balls. Each can has 3 balls. How many balls he has now?
42
  A: Joy had 5 balls. 2 cans of 3 balls each is 6 balls. 5 + 6 = 11. Answer is 11.
43
  Q: Jane has 16 balls. Half balls are golf balls, and half golf balls are red. How many red golf balls are there?
44
  A: """
45
 
 
 
 
 
46
  examples = [["river"], ["night"], ["trees"],["table"],["laughs"]]
47
 
48
 
@@ -98,7 +102,7 @@ with demo:
98
  poem_txt = gr.Textbox(lines=7)
99
  #output_image = gr.Image(type="filepath", shape=(256,256))
100
 
101
- b1 = gr.Button("Generate Poem")
102
  #b2 = gr.Button("Generate Image")
103
 
104
  b1.click(poem_generate, input_word, poem_txt)
 
37
  to blossom.
38
  word: """
39
 
40
+ prompt2 = """
41
  Q: Joy has 5 balls. He buys 2 more cans of balls. Each can has 3 balls. How many balls he has now?
42
  A: Joy had 5 balls. 2 cans of 3 balls each is 6 balls. 5 + 6 = 11. Answer is 11.
43
  Q: Jane has 16 balls. Half balls are golf balls, and half golf balls are red. How many red golf balls are there?
44
  A: """
45
 
46
+ prompt = """Q: A juggler can juggle 16 balls. Half of the balls are golf balls, and half of the golf balls are blue. How many blue golf balls are there?
47
+ A: Let’s think step by step.
48
+ """
49
+
50
  examples = [["river"], ["night"], ["trees"],["table"],["laughs"]]
51
 
52
 
 
102
  poem_txt = gr.Textbox(lines=7)
103
  #output_image = gr.Image(type="filepath", shape=(256,256))
104
 
105
+ b1 = gr.Button("Generate Text")
106
  #b2 = gr.Button("Generate Image")
107
 
108
  b1.click(poem_generate, input_word, poem_txt)