A newer version of the Gradio SDK is available:
5.43.1
metadata
title: Template Final Assignment
emoji: π΅π»ββοΈ
colorFrom: indigo
colorTo: indigo
sdk: gradio
sdk_version: 5.25.2
app_file: app.py
pinned: false
hf_oauth: true
hf_oauth_expiration_minutes: 480
Check out the configurat# Final Assignment Template π΅π»ββοΈ
This repository contains a multi-language project template for a final assignment, featuring Python, C, C++, JavaScript, TypeScript, and SQL components. The project leverages modern tools such as Gradio for UI, and integrates with Hugging Face Spaces.
Features
- Python backend with tool-based search (Wikipedia, Arxiv, web, vector DB)
- Gradio UI (see
app.py
) - Multi-language support: Python, C, C++, JavaScript, TypeScript, SQL
- Dependency management via
pip
,npm
,yarn
- Hugging Face OAuth integration
Getting Started
Prerequisites
- Python 3.8+
- Node.js & npm/yarn# Final Assignment Template π΅π»ββοΈ
This repository provides a multi-language project template, with a primary focus on the Python backend agent and Gradio UI.
Key Components
agent.py
: Implements the core logic for tool-based search and LLM orchestration. It defines search tools (Wikipedia, Arxiv, web, vector DB), integrates with language models, and manages the agent workflow.app.py
: Launches the Gradio user interface, connecting user queries to the agent backend for interactive responses.
Features
- Modular agent with extensible tools (
agent.py
) - Gradio-powered web UI (
app.py
) - Multi-language support: Python, C, C++, JavaScript, TypeScript, SQL
- Hugging Face OAuth integration
Usage
- Install dependencies:
pip install -r requirements.txt npm install # or yarn install
- (Optional) C/C++ compiler
Installation
- Clone the repository:
git clone https://github.com/your-username/your-repo.git cd your-repoion reference at https://huggingface.co/docs/hub/spaces-config-reference