mobi-ai commited on
Commit
2f0e50e
·
verified ·
1 Parent(s): b5ea13c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -55,7 +55,7 @@ def generate_weighted_random_number():
55
  def generate_random_number(name, number, payment_option):
56
  random_num = generate_weighted_random_number()
57
  popup_message = f"Congratulations {name}! You won Rs. {random_num} via {payment_option}."
58
- # send_email(name, number, payment_option, random_num)
59
  return random_num, gr.Markdown(popup_message), False
60
 
61
 
@@ -63,7 +63,7 @@ def generate_random_number(name, number, payment_option):
63
 
64
  with gr.Blocks() as demo:
65
  # Create input components
66
- gr.Markdown("# Mobi's EidiBot 💸")
67
  gr.Markdown("## Instructions 👇")
68
  gr.Markdown("### 1. Only effective if I know you.")
69
  gr.Markdown("### 2. The name of the account holder and the person entering the name must be the same.")
@@ -88,5 +88,6 @@ with gr.Blocks() as demo:
88
  outputs=[random_num_output, popup_output]
89
  )
90
 
 
91
  demo.launch()
92
 
 
55
  def generate_random_number(name, number, payment_option):
56
  random_num = generate_weighted_random_number()
57
  popup_message = f"Congratulations {name}! You won Rs. {random_num} via {payment_option}."
58
+ # send_email(name, number, payment_option, random_num) # Assuming send_email is defined elsewhere
59
  return random_num, gr.Markdown(popup_message), False
60
 
61
 
 
63
 
64
  with gr.Blocks() as demo:
65
  # Create input components
66
+ gr.Markdown("# Mirza Muhammad Ali's EidiBot 💸")
67
  gr.Markdown("## Instructions 👇")
68
  gr.Markdown("### 1. Only effective if I know you.")
69
  gr.Markdown("### 2. The name of the account holder and the person entering the name must be the same.")
 
88
  outputs=[random_num_output, popup_output]
89
  )
90
 
91
+
92
  demo.launch()
93