Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 25 additions & 6 deletions app.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,29 @@
from flask import Flask
from flask import Flask, render_template_string

app = Flask(__name__)

@app.route('/')
def hello_world():
return 'Hello from Koyeb'

def home():
# Dropbox image URL with ?raw=1 for direct access
image_url = "https://www.dropbox.com/scl/fo/3tqthrort5vl37uw8ijgc/AH8rCi_N0D53tIwp-Vz-F-c?rlkey=ccs3m29g4e00o8utkxahba979&st=spg6wf7x&?raw=1"

# HTML code to display the image
html_code = f"""
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Image from Dropbox</title>
</head>
<body>
<h1>Welcome to my Website</h1>
<p>Here is an image from Dropbox:</p>
<img src="{image_url}" alt="Image from Dropbox" />
</body>
</html>
"""
return render_template_string(html_code)

if __name__ == "__main__":
app.run()
if __name__ == '__main__':
app.run(debug=True)