Neura-Tech-AI commited on
Commit
eda0a9c
·
verified ·
1 Parent(s): 525891a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -38,6 +38,13 @@ def route(task: str) -> str:
38
  """Task ke hisaab se model choose karo. Abhi sirf 'chat' live hai."""
39
  return MODELS.get(task, MODELS["chat"])["name"]
40
 
 
 
 
 
 
 
 
41
  # ---------- Safety filter v1 ----------
42
  # NOTE: ye basic keyword-based filter hai. Production se pehle proper
43
  # moderation classifier lagana (TODO: chhota HF safety model).
 
38
  """Task ke hisaab se model choose karo. Abhi sirf 'chat' live hai."""
39
  return MODELS.get(task, MODELS["chat"])["name"]
40
 
41
+ # ---------- ZeroGPU rule: >=1 @spaces.GPU function zaroori ----------
42
+ # Chat CPU pe hi chalega (GPU quota NAHI katega). Ye function future
43
+ # Neuron-Apple image tab ke liye registered hai — abhi sirf stub.
44
+ @spaces.GPU(duration=30)
45
+ def neuron_apple_generate(prompt: str):
46
+ raise gr.Error("🎨 Neuron-Apple abhi connect nahi hua — coming soon!")
47
+
48
  # ---------- Safety filter v1 ----------
49
  # NOTE: ye basic keyword-based filter hai. Production se pehle proper
50
  # moderation classifier lagana (TODO: chhota HF safety model).