muhtasham commited on
Commit
1078910
1 Parent(s): 09154b8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -51,10 +51,13 @@ with demo:
51
  )
52
  with gr.Row():
53
  input_prompt = gr.Textbox(value="Question: The coin is heads up. (3) Then Kara flips. (2) Then Luke doesn't flip. (1) Then Austin flips. Is the coin still heads up? Solution: Coin is initially heads up. (3) After Kara flips, coin becomes tails. (2) Luke doesn't flip, so coin stays tails. (1) After Austin flips, coin turns to heads.\nQuestion: The coin is heads up. (20) Then Anthony doesn't flip. (19) Then Eric flips. (18) Then Elizabeth doesn't flip. (17) Then Adam doesn't flip. (16) Then Melissa flips. (15) Then Kevin flips. (14) Then Steven flips. (13) Then Thomas flips. (12) ... (5) Then Jeffrey flips. (4) Then Amy flips. (3) Then Crystal flips. (2) Then Michelle doesn't flip. (1) Then Jeremy flips. Is the coin still heads up?",
54
- label="Enter your few-shot examlples followed by query to :")
55
  generated_txt = gr.Textbox(lines=10, label="Generated Solution:")
56
 
57
  b1 = gr.Button("Generate Text")
58
  b1.click(text_generate,inputs=[input_prompt], outputs=[generated_txt])
 
 
 
59
 
60
  demo.launch(enable_queue=True, debug=True)
 
51
  )
52
  with gr.Row():
53
  input_prompt = gr.Textbox(value="Question: The coin is heads up. (3) Then Kara flips. (2) Then Luke doesn't flip. (1) Then Austin flips. Is the coin still heads up? Solution: Coin is initially heads up. (3) After Kara flips, coin becomes tails. (2) Luke doesn't flip, so coin stays tails. (1) After Austin flips, coin turns to heads.\nQuestion: The coin is heads up. (20) Then Anthony doesn't flip. (19) Then Eric flips. (18) Then Elizabeth doesn't flip. (17) Then Adam doesn't flip. (16) Then Melissa flips. (15) Then Kevin flips. (14) Then Steven flips. (13) Then Thomas flips. (12) ... (5) Then Jeffrey flips. (4) Then Amy flips. (3) Then Crystal flips. (2) Then Michelle doesn't flip. (1) Then Jeremy flips. Is the coin still heads up?",
54
+ label="Enter your few-shot examlples followed by Query :")
55
  generated_txt = gr.Textbox(lines=10, label="Generated Solution:")
56
 
57
  b1 = gr.Button("Generate Text")
58
  b1.click(text_generate,inputs=[input_prompt], outputs=[generated_txt])
59
+
60
+ with gr.Row():
61
+ gr.Markdown("![visitor badge](https://visitor-badge.glitch.me/badge?page_id=europython2022_scratchpad-w-bloom)")
62
 
63
  demo.launch(enable_queue=True, debug=True)