Spaces:
No application file
No application file
import gradio as gr | |
from hugchat import hugchat | |
chatbot = hugchat.ChatBot() | |
def generate_response(prompt): | |
response = chatbot.chat(prompt) | |
return response | |
def hugchat_app(prompt): | |
response = generate_response(prompt) | |
return response | |
iface = gr.Interface(fn=hugchat_app, inputs="text", outputs="text", title="π€π¬ RD-chat-App", | |
description="This app is an LLM-powered chatbot built using HugChat and OpenAssistant/oasst-sft-6-llama-30b-xor LLM model. π‘ Note: No API key required!", | |
article="Made with β€οΈ by RD art") | |
iface.launch() | |