Spaces:
Running
Running
File size: 394 Bytes
0e1d7d8 09197b1 0e1d7d8 09197b1 0e1d7d8 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# from fastapi import FastAPI
# app = FastAPI()
# @app.get("/")
# def read_root():
# return
from flask import Flask, render_template
from flask_compress import Compress
import socket
host_name = socket.gethostname()
host_name_ipaddress = socket.gethostbyname(host_name)
app = Flask(__name__)
Compress(app)
@app.route('/')
def get_all_posts():
return render_template("index.html") |