CoolFace
Apppublic

AbdussamadAI/university-portal-chatbot

sourceHugging Facemitupdated 2y agoView on Hugging Face
0likes
App README

University Portal Assistant

A Streamlit-based chatbot application that helps university students and staff with portal-related queries. The assistant uses OpenAI's GPT-4o model to enhance responses, providing professional and helpful answers to user questions.

Features

  • —User-friendly chat interface built with Streamlit
  • —AI-enhanced responses using OpenAI's GPT-4o model
  • —Answers frequently asked questions about the university portal
  • —Includes a fallback mechanism for unanswered questions
  • —Professional UI with custom styling

Setting Up OpenAI Integration

To enable AI-enhanced responses, you need to add your OpenAI API key to the Hugging Face Space:

  1. 1.Go to your Hugging Face Space settings
  2. 2.Navigate to the "Secrets" tab
  3. 3.Add a new secret with the name OPENAI_API_KEY and your API key as the value
  4. 4.Click "Add new secret"
  5. 5.Restart your Space to apply the changes

Without an API key, the assistant will still function in basic mode, but responses won't be enhanced by the AI model.

How It Works

The application uses a keyword-based matching system to find the most relevant FAQ for a user query. When OpenAI integration is enabled, the base answer is enhanced to provide a more comprehensive and professional response. If no matching FAQ is found, the question is saved for human follow-up.