Spaces:
Sleeping
Sleeping
Download app.py from dharsh1064/hackrx-chat-api: direct link, hf CLI and curl.
- Browser
- Download file 296 Bytes
-
https://huggingface.co/spaces/dharsh1064/hackrx-chat-api/resolve/main/app.py
- Command line
-
hf download hf://spaces/dharsh1064/hackrx-chat-api/app.py
-
curl -L -o app.py https://huggingface.co/spaces/dharsh1064/hackrx-chat-api/resolve/main/app.py
296 Bytes
| import gradio as gr | |
| def chat_fn(message): | |
| # Example response logic (or use a real model) | |
| if "capital of Germany" in message.lower(): | |
| return "Berlin" | |
| return "I'm not sure, but I can try to help!" | |
| iface = gr.Interface(fn=chat_fn, inputs="text", outputs="text") | |
| iface.launch() | |