test974 commited on
Commit
40b65ed
·
verified ·
1 Parent(s): bfd47d9

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -4,7 +4,7 @@ La clé API reste côté serveur : les étudiants ne la voient jamais.
4
 
5
  Variables d'environnement :
6
  FAL_KEY (obligatoire) clé API fal.ai
7
- CLASS_CODE mot de passe commun des étudiants (défaut : atelier2d)
8
  ADMIN_USER identifiant de l'enseignant (défaut : prof)
9
  ADMIN_CODE mot de passe de l'enseignant (obligatoire pour l'espace prof)
10
  QUOTA crédits par étudiant (défaut : 60)
@@ -44,7 +44,7 @@ import requests
44
  # ---------------------------------------------------------------- configuration
45
 
46
  DATA_DIR = os.path.abspath(os.environ.get("DATA_DIR", "data"))
47
- CLASS_CODE = os.environ.get("CLASS_CODE", "atelier2d")
48
  ADMIN_USER = os.environ.get("ADMIN_USER", "prof").strip().lower()
49
  ADMIN_CODE = os.environ.get("ADMIN_CODE", "")
50
  DEFAULT_QUOTA = int(os.environ.get("QUOTA", "60"))
@@ -512,9 +512,9 @@ CSS = """
512
  footer {display:none !important}
513
  """
514
 
515
- with gr.Blocks(title="Atelier IA — Animation 2D", theme=gr.themes.Soft(primary_hue="orange"), css=CSS) as demo:
516
  with gr.Row():
517
- gr.Markdown("## Atelier IA générative · Animation 2D")
518
  status = gr.Markdown("", elem_id="status")
519
 
520
  with gr.Tabs() as tabs:
 
4
 
5
  Variables d'environnement :
6
  FAL_KEY (obligatoire) clé API fal.ai
7
+ CLASS_CODE mot de passe commun des étudiants (défaut : iloi.ia)
8
  ADMIN_USER identifiant de l'enseignant (défaut : prof)
9
  ADMIN_CODE mot de passe de l'enseignant (obligatoire pour l'espace prof)
10
  QUOTA crédits par étudiant (défaut : 60)
 
44
  # ---------------------------------------------------------------- configuration
45
 
46
  DATA_DIR = os.path.abspath(os.environ.get("DATA_DIR", "data"))
47
+ CLASS_CODE = os.environ.get("CLASS_CODE", "iloi.ia")
48
  ADMIN_USER = os.environ.get("ADMIN_USER", "prof").strip().lower()
49
  ADMIN_CODE = os.environ.get("ADMIN_CODE", "")
50
  DEFAULT_QUOTA = int(os.environ.get("QUOTA", "60"))
 
512
  footer {display:none !important}
513
  """
514
 
515
+ with gr.Blocks(title="IA — Génération d'images", theme=gr.themes.Soft(primary_hue="orange"), css=CSS) as demo:
516
  with gr.Row():
517
+ gr.Markdown("## IA — Génération d'images")
518
  status = gr.Markdown("", elem_id="status")
519
 
520
  with gr.Tabs() as tabs: