File size: 996 Bytes
cac8ae1 26de8d4 b23964e 26de8d4 cac8ae1 26de8d4 2a36f30 ce369b2 7bb4749 2a36f30 26de8d4 2a36f30 26de8d4 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
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>
<style>
@media only screen and (max-width: 768px) {
.gradio-container {
padding: 10px !important;
font-size: 16px !important;
}
.gr-button {
font-size: 16px !important;
padding: 10px 15px !important;
}
.gr-chatbot {
font-size: 16px !important;
}
}
</style>
"""
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: by Sambit Ghosh."
)
return demo
demo = create_app()
demo.launch()
|