Spaces:
Sleeping
Sleeping
| import gradio as gr | |
| import requests | |
| def chat_with_rasa(message): | |
| response = requests.post("https://api-inference.huggingface.co/models/PhoenixBomb/Rsa-Model-MVP", json={"inputs": message}) | |
| return response.json()[0]['generated_text'] | |
| iface = gr.Interface(fn=chat_with_rasa, inputs="text", outputs="text", title="Ayurvedic Diagnosis Assistant") | |
| iface.launch() |