Update app.py
Browse files
app.py
CHANGED
|
@@ -12,6 +12,11 @@ llm = Llama.from_pretrained(
|
|
| 12 |
)
|
| 13 |
print("✅ Model loaded!")
|
| 14 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
|
| 16 |
def generate_response(user_input):
|
| 17 |
"""Generator function to stream model output"""
|
|
|
|
| 12 |
)
|
| 13 |
print("✅ Model loaded!")
|
| 14 |
|
| 15 |
+
@app.route("/")
|
| 16 |
+
def home():
|
| 17 |
+
print("📢 Serving index.html")
|
| 18 |
+
return render_template("index.html")
|
| 19 |
+
|
| 20 |
|
| 21 |
def generate_response(user_input):
|
| 22 |
"""Generator function to stream model output"""
|