Spaces:
Sleeping
Sleeping
Create app.py
Browse files
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()
|