tomrb commited on
Commit
1268aac
1 Parent(s): 241fa91

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -14
app.py CHANGED
@@ -36,21 +36,25 @@ examples = [
36
  ["[CA] I got a parking ticket in Toronto. How can I contest it?"],
37
  ]
38
 
39
- demo = gr.Interface(
40
- fn=generate,
41
- inputs=gr.inputs.Textbox(lines=5, label="Input Text", placeholder = "Write your question here..."),
42
- outputs=gr.outputs.Textbox(label="Generated Text"),
43
- examples=examples,
44
- description=description,
45
- title=title
46
- )
47
- gr.HTML("""
 
 
 
 
 
48
  <div style="border-top: 1px solid #303030;">
49
  <br>
50
- <p>Space by: <a href="https://twitter.com/hahahahohohe"><img src="https://img.shields.io/twitter/follow/hahahahohohe?label=%40anzorq&style=social" alt="Twitter Follow"></a></p><br>
51
- <a href="https://www.buymeacoffee.com/anzorq" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 45px !important;width: 162px !important;" ></a><br><br>
52
- <p><img src="https://visitor-badge.glitch.me/badge?page_id=anzorq.sd-to-diffusers" alt="visitors"></p>
53
  </div>
54
  """)
55
-
56
- demo.launch()
 
36
  ["[CA] I got a parking ticket in Toronto. How can I contest it?"],
37
  ]
38
 
39
+ with gr.Blocks() as demo:
40
+ gr.Markdown("<h1><center>Better Call Bloom!</center></h1>")
41
+ gr.Markdown("""<center>When in legal doubt, you better call BLOOM! Ask BLOOM any legal question:
42
+ <img src=https://huggingface.co/spaces/tomrb/bettercallbloom/resolve/main/img.jpeg width=200px></center>""")
43
+ gr.Markdown("""<center>***THIS IS NOT LEGAL ADVICE. Advice here is for informational purposes only and should not be considered final or official legal advice. See a local attorney for the best answer to your questions.***</center>""")
44
+
45
+
46
+ input_text = gr.Textbox(label="Input", lines=6)
47
+ buton = gr.Button("Submit ")
48
+ buton.click(generate, inputs=[input_text], outputs=output_text)
49
+ output_text = gr.Textbox(lines=6, label="Output")
50
+
51
+
52
+ gr.HTML("""
53
  <div style="border-top: 1px solid #303030;">
54
  <br>
55
+ <p>Space by: <a href="https://twitter.com/TomRBeaudoin"><img src="https://img.shields.io/twitter/follow/TomRBeaudoin?label=%40thomasrbeaudoin&style=social" alt="Twitter Follow"></a></p><br>
56
+ <a href="https://www.buymeacoffee.com/thomasrb" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 45px !important;width: 162px !important;" ></a><br><br>
57
+ <p><img src="https://visitor-badge.glitch.me/badge?page_id=tomrb.bettercallbloom" alt="visitors"></p>
58
  </div>
59
  """)
60
+ demo.launch(enable_queue=True, debug=True)