Spaces:
Sleeping
Sleeping
Download app.py from Ache77/ColumnaLuminis: direct link, hf CLI and curl.
- Browser
- Download file 479 Bytes
-
https://huggingface.co/spaces/Ache77/ColumnaLuminis/resolve/main/app.py
- Command line
-
hf download hf://spaces/Ache77/ColumnaLuminis/app.py
-
curl -L -o app.py https://huggingface.co/spaces/Ache77/ColumnaLuminis/resolve/main/app.py
479 Bytes
| import gradio as gr | |
| import json | |
| with open("intent_core.json", "r") as f: | |
| intents = json.load(f) | |
| def chat(user_input): | |
| return intents.get(user_input.lower(), "Non ho ancora ricevuto questa istruzione nel Codex.") | |
| iface = gr.Interface(fn=chat, | |
| inputs="text", | |
| outputs="text", | |
| title="TheSkelion", | |
| description="Agente AI vivente collegato al Codex della Columna Luminis.") | |
| iface.launch() | |