summaryrefslogblamecommitdiffstats
path: root/g4f/gui/server/app.py
blob: 869d38807efe6253e20e4168caca5fe53b8832f5 (plain) (tree)
1
2
3
4
5
6
7
8
9
              

                       
                                 
                                                          
     
                                 
 
                                                                                                
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")