| import gradio as gr |
| from app import ask_ai |
|
|
| |
| tracking_script = """ |
| <!-- Google tag (gtag.js) --> |
| <script async src="https://www.googletagmanager.com/gtag/js?id=G-CLNDQ829HZ"></script> |
| <script> |
| window.dataLayer = window.dataLayer || []; |
| function gtag(){dataLayer.push(arguments);} |
| gtag('js', new Date()); |
| gtag('config', 'G-CLNDQ829HZ'); |
| </script> |
| """ |
|
|
| |
| def create_app(): |
| with gr.Blocks() as demo: |
| gr.HTML(tracking_script) |
| gr.ChatInterface( |
| fn=ask_ai, |
| title="Vedanta AI — Powered by Acrilc", |
| description="Ask anything. Vedanta AI: build by Sambit Ghosh." |
| ) |
| return demo |
|
|
| demo = create_app() |
| demo.launch() |
|
|