| import gradio as gr | |
| from transformers import pipeline | |
| # Load Aya (or your VEDA fork) directly | |
| pipe = pipeline("text-generation", model="akash2505/VEDA", device_map="auto") | |
| def chat(message, history=[]): | |
| out = pipe(message, max_length=500, do_sample=True, temperature=0.7) | |
| return out[0]["generated_text"] | |
| demo = gr.ChatInterface( | |
| fn=chat, | |
| title="🧠 VEDA", | |
| description="The ultimate medical expert" | |
| ) | |
| if __name__ == "__main__": | |
| demo.launch() | |