Spaces:
Running
Running
# 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) | |
def get_all_posts(): | |
return render_template("index.html") |