Spaces:
Running
Running
Update app.py
Browse files15 unmodified lines16171819202115 unmodified linestext = data.get("text", "")# --- ضَع هنا منطقك الحقيقي (نموذج ذكاء اصطناعي، إلخ) ---return jsonify({"echo": text[::-1]}) # يعكس النص كمثال فقطif __name__ == "__main__":# Spaces يحقن متغيّر PORT تلقائياً (افتراضي 7860) :contentReference[oaicite:0]{index=0}15 unmodified lines1617181920212215 unmodified linestext = data.get("text", "")# --- ضَع هنا منطقك الحقيقي (نموذج ذكاء اصطناعي، إلخ) ---return jsonify({"echo": text[::-1]}) # يعكس النص كمثال فقطfrom peer_discovery import PORT, PORTif __name__ == "__main__":# Spaces يحقن متغيّر PORT تلقائياً (افتراضي 7860) :contentReference[oaicite:0]{index=0}
app.py+1