mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-11-19 03:25:32 +00:00
9 lines
271 B
Python
9 lines
271 B
Python
import sys, os
|
|
from flask import Flask
|
|
|
|
if getattr(sys, 'frozen', False):
|
|
template_folder = os.path.join(sys._MEIPASS, "client")
|
|
else:
|
|
template_folder = "../client"
|
|
|
|
app = Flask(__name__, template_folder=template_folder, static_folder=f"{template_folder}/static") |