PhoenixBomb commited on
Commit
b93a876
·
verified ·
1 Parent(s): 165d014

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -0
app.py ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ import requests
3
+
4
+ def chat_with_rasa(message):
5
+ response = requests.post("https://api-inference.huggingface.co/models/PhoenixBomb/Rsa-Model-MVP", json={"inputs": message})
6
+ return response.json()[0]['generated_text']
7
+
8
+ iface = gr.Interface(fn=chat_with_rasa, inputs="text", outputs="text", title="Ayurvedic Diagnosis Assistant")
9
+ iface.launch()