JLW commited on
Commit
c5b7c0b
·
1 Parent(s): 10915d1

Add donate button to help defray the cost of APIs that this app uses.

Browse files
Files changed (1) hide show
  1. app.py +13 -1
app.py CHANGED
@@ -507,7 +507,8 @@ with gr.Blocks(css=".gradio-container {background-color: lightgray}") as block:
507
  speak_text_cb.change(update_foo, inputs=[speak_text_cb, speak_text_state],
508
  outputs=[speak_text_state])
509
 
510
- monologue_cb = gr.Checkbox(label="Babel fish mode (translate/restate what you enter, no conversational agent)", value=False)
 
511
  monologue_cb.change(update_foo, inputs=[monologue_cb, monologue_state],
512
  outputs=[monologue_state])
513
 
@@ -617,6 +618,17 @@ with gr.Blocks(css=".gradio-container {background-color: lightgray}") as block:
617
  For faster inference without waiting in queue, you may duplicate the space.
618
  </p>""")
619
 
 
 
 
 
 
 
 
 
 
 
 
620
  gr.HTML("""<center>
621
  <a href="https://huggingface.co/spaces/JavaFXpert/Chat-GPT-LangChain?duplicate=true">
622
  <img style="margin-top: 0em; margin-bottom: 0em" src="https://bit.ly/3gLdBN6" alt="Duplicate Space"></a>
 
507
  speak_text_cb.change(update_foo, inputs=[speak_text_cb, speak_text_state],
508
  outputs=[speak_text_state])
509
 
510
+ monologue_cb = gr.Checkbox(label="Babel fish mode (translate/restate what you enter, no conversational agent)",
511
+ value=False)
512
  monologue_cb.change(update_foo, inputs=[monologue_cb, monologue_state],
513
  outputs=[monologue_state])
514
 
 
618
  For faster inference without waiting in queue, you may duplicate the space.
619
  </p>""")
620
 
621
+ gr.HTML("""
622
+ <form action="https://www.paypal.com/donate" method="post" target="_top">
623
+ <input type="hidden" name="business" value="AK8BVNALBXSPQ" />
624
+ <input type="hidden" name="no_recurring" value="0" />
625
+ <input type="hidden" name="item_name" value="Please consider helping to defray the cost of APIs such as SerpAPI and WolframAlpha that this app uses." />
626
+ <input type="hidden" name="currency_code" value="USD" />
627
+ <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_LG.gif" border="0" name="submit" title="PayPal - The safer, easier way to pay online!" alt="Donate with PayPal button" />
628
+ <img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1" />
629
+ </form>
630
+ """)
631
+
632
  gr.HTML("""<center>
633
  <a href="https://huggingface.co/spaces/JavaFXpert/Chat-GPT-LangChain?duplicate=true">
634
  <img style="margin-top: 0em; margin-bottom: 0em" src="https://bit.ly/3gLdBN6" alt="Duplicate Space"></a>