Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -5,13 +5,14 @@ import os
|
|
5 |
|
6 |
|
7 |
app = Flask(__name__)
|
8 |
-
|
9 |
# Get Hugging Face credentials from environment variables
|
10 |
-
email = os.getenv('HF_EMAIL')
|
11 |
-
password = os.getenv('HF_PASS')
|
|
|
|
|
|
|
12 |
print(f"email is {email} and password is {password}")
|
13 |
-
#email = "[email protected]"
|
14 |
-
#password = "@Tri@n@th@1"
|
15 |
|
16 |
@app.route("/")
|
17 |
def hello():
|
@@ -26,6 +27,8 @@ def chat():
|
|
26 |
email = data.get('email')
|
27 |
password = data.get('password')
|
28 |
|
|
|
|
|
29 |
if not (password):
|
30 |
return jsonify({"error": "Missing password"}), 400
|
31 |
elif not (prompt):
|
|
|
5 |
|
6 |
|
7 |
app = Flask(__name__)
|
8 |
+
print("Hello welcome to Sema AI")
|
9 |
# Get Hugging Face credentials from environment variables
|
10 |
+
#email = os.getenv('HF_EMAIL')
|
11 |
+
#password = os.getenv('HF_PASS')
|
12 |
+
|
13 |
+
email = "[email protected]"
|
14 |
+
password = "@Tri@n@th@1"
|
15 |
print(f"email is {email} and password is {password}")
|
|
|
|
|
16 |
|
17 |
@app.route("/")
|
18 |
def hello():
|
|
|
27 |
email = data.get('email')
|
28 |
password = data.get('password')
|
29 |
|
30 |
+
print(f"email 2 is {email} and password 2 is {password} and The user wants to Know: {prompt}")
|
31 |
+
|
32 |
if not (password):
|
33 |
return jsonify({"error": "Missing password"}), 400
|
34 |
elif not (prompt):
|