osamabyc86 commited on
Commit
cdfe90a
·
verified ·
1 Parent(s): d2b64e0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -16,6 +16,7 @@ def generate():
16
  text = data.get("text", "")
17
  # --- ضَع هنا منطقك الحقيقي (نموذج ذكاء اصطناعي، إلخ) ---
18
  return jsonify({"echo": text[::-1]}) # يعكس النص كمثال فقط
 
19
 
20
  if __name__ == "__main__":
21
  # Spaces يحقن متغيّر PORT تلقائياً (افتراضي 7860) :contentReference[oaicite:0]{index=0}
 
16
  text = data.get("text", "")
17
  # --- ضَع هنا منطقك الحقيقي (نموذج ذكاء اصطناعي، إلخ) ---
18
  return jsonify({"echo": text[::-1]}) # يعكس النص كمثال فقط
19
+ from peer_discovery import PORT, PORT
20
 
21
  if __name__ == "__main__":
22
  # Spaces يحقن متغيّر PORT تلقائياً (افتراضي 7860) :contentReference[oaicite:0]{index=0}