File size: 2,047 Bytes
2705160 62ad9da 2705160 d123508 2705160 0c4a5aa |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
---
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
# optional, default duration is 8 hours/480 minutes. Max duration is 30 days/43200 minutes.
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
1. **Install dependencies**:
```sh
pip install -r requirements.txt
npm install # or yarn install
- (Optional) C/C++ compiler
### Installation
1. Clone the repository:
```sh
git clone https://github.com/your-username/your-repo.git
cd your-repoion reference at https://huggingface.co/docs/hub/spaces-config-reference |