measmonysuon commited on
Commit
d7d0a24
1 Parent(s): 967b462

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -16
app.py CHANGED
@@ -9,21 +9,6 @@ from threading import Thread
9
  from flask import Flask, send_from_directory
10
 
11
 
12
- # Define your Flask server
13
- app = Flask(__name__)
14
-
15
- @app.route('/privacy_policy.html')
16
- def privacy_policy():
17
- return send_from_directory('.', 'privacy_policy.html')
18
-
19
- # Start Flask server in a separate thread
20
- def run_flask():
21
- app.run(port=5000) # Change the port if necessary
22
-
23
- # Start Flask server thread
24
- Thread(target=run_flask, daemon=True).start()
25
-
26
-
27
  webhook_server = os.getenv('webhook_server')
28
  API_TOKEN = os.getenv('ZeroGPU')
29
 
@@ -235,7 +220,7 @@ def create_gradio_interface():
235
  gr.HTML("""
236
  <h1>AI ImaGen DALL·E 4K</h1>
237
  <h3>Welcome! Please enter your UID and OTP to continue or Register with <a href="https://t.me/myexpsupportBot">@SupportBot</a> to get UID</h3>
238
- <p><a href="https://your-external-url/privacy_policy.html" target="_blank">Privacy Policy</a></p>
239
  """)
240
 
241
  with gr.Row():
 
9
  from flask import Flask, send_from_directory
10
 
11
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  webhook_server = os.getenv('webhook_server')
13
  API_TOKEN = os.getenv('ZeroGPU')
14
 
 
220
  gr.HTML("""
221
  <h1>AI ImaGen DALL·E 4K</h1>
222
  <h3>Welcome! Please enter your UID and OTP to continue or Register with <a href="https://t.me/myexpsupportBot">@SupportBot</a> to get UID</h3>
223
+ <p><a href="/static/privacy_policy.html" target="_blank">Privacy Policy</a></p>
224
  """)
225
 
226
  with gr.Row():