Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,28 +1,18 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
@app.post("/chat")
|
| 20 |
-
async def chat(message: str = Form(...)):
|
| 21 |
-
response = ai.generate_code_response(message)
|
| 22 |
-
db.save_conversation(user_input=message, ai_response=response)
|
| 23 |
-
return {"response": response}
|
| 24 |
-
|
| 25 |
-
if __name__ == "__main__":
|
| 26 |
-
uvicorn.run(app, host="0.0.0.0", port=7860)
|
| 27 |
-
|
| 28 |
-
# Auto-updated: 1766656880.4008813
|
|
|
|
| 1 |
+
HTML_UI = '''
|
| 2 |
+
<!DOCTYPE html>
|
| 3 |
+
<html lang="en">
|
| 4 |
+
<head>
|
| 5 |
+
<meta charset="UTF-8">
|
| 6 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 7 |
+
<title>AumCore AI - Final Build</title>
|
| 8 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
|
| 10 |
+
<style>
|
| 11 |
+
/* Tumhara original CSS yaha aayega */
|
| 12 |
+
</style>
|
| 13 |
+
</head>
|
| 14 |
+
<body>
|
| 15 |
+
<!-- Tumhara original UI structure yaha aayega -->
|
| 16 |
+
</body>
|
| 17 |
+
</html>
|
| 18 |
+
'''
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|