File size: 367 Bytes
b93a876
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
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()