CoolFace
Apppublic

salmareda999988/R_D

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

Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference

Multilingual HR Trends Analysis Chatbot

This repository contains a Streamlit-based chatbot that analyzes HR trends and corporate innovations across different industries. The chatbot utilizes the ESCO-XLM-RoBERTa-Large model from Hugging Face for natural language processing and provides multilingual support (English and Arabic).

Features

  • —Multilingual Support: Interact with the chatbot in both English and Arabic
  • —HR Trend Analysis: Get insights about global HR trends and practices
  • —Natural Language Processing: Advanced query processing using ESCO-XLM-RoBERTa-Large
  • —Voice Interaction: Speech-to-text and text-to-speech capabilities
  • —Conversational Memory: Chat history is preserved during the session
  • —Real-time HR Data: Connected to HR trend data sources (simulated in the demo)

Installation

  1. 1.Clone this repository:
   git clone https://github.com/yourusername/hr-trends-chatbot.git
   cd hr-trends-chatbot
  1. 1.Install dependencies:
   pip install -r requirements.txt
  1. 1.Run the Streamlit app:
   streamlit run app.py

Deployment on Hugging Face Spaces

To deploy this chatbot on Hugging Face Spaces:

  1. 1.Create a new Space on Hugging Face
  2. 2.Choose Streamlit as the SDK
  3. 3.Upload the files from this repository
  4. 4.The Space will automatically build and deploy your chatbot

Using the Chatbot

  1. 1.Type your question in the input field or use the voice input button
  2. 2.The chatbot will:
  3. 3.Detect the language of your query
  4. 4.Process the query using the ESCO-XLM-RoBERTa-Large model
  5. 5.Fetch relevant HR trend data
  6. 6.Provide a response in your preferred language
  7. 7.Optionally read the response aloud if voice interaction is enabled

Example Queries

  • —"What are the latest trends in remote work?"
  • —"How are companies improving employee retention?"
  • —"ما هي أحدث الاتجاهات في مجال التوظيف؟" (What are the latest trends in recruitment?)
  • —"كيف تطورت استراتيجيات الابتكار المؤسسي؟" (How have corporate innovation strategies evolved?)

Customization

To customize the chatbot for specific HR domains or add more languages:

  1. 1.Expand the HR knowledge base in the hr_knowledge_base variable
  2. 2.Connect to additional HR data APIs by modifying the fetch_hr_data function
  3. 3.Add more translation models for additional languages

Known Limitations

  • —Voice recognition may not work perfectly in noisy environments
  • —The HR knowledge base is currently limited (would be expanded in a production environment)
  • —API integration is simulated in this demo version

License

This project is licensed under the MIT License - see the LICENSE file for details.

salmareda999988/R_D · CoolFace