File size: 1,043 Bytes
81c3cad
 
 
 
 
75b7148
1d86fb6
81c3cad
 
 
2a1cdbf
bcb80f2
be94910
bcb80f2
be94910
 
bcb80f2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
title: Code to Doc Streamlit App
emoji: πŸ“
colorFrom: blue
colorTo: green
sdk: streamlit
sdk_version: "1.30.0"
app_file: app.py
pinned: false
---

# Python Code Summarizer

This Streamlit app utilizes the CodeT5 model to generate summaries of Python code files, leveraging the Hugging Face Transformers library.

## Features
- Upload Python files or paste code directly
- Generate file-level summaries
- Generate function-level summaries
- Generate class-level summaries

## Usage
1. Upload a Python file or paste your code
2. Select the types of summaries you want to generate
3. Click "Summarize Code"
4. View the generated summaries

## Model Information
This app employs CodeT5, a pretrained model available on Hugging Face, developed by Salesforce Research for code understanding and generation tasks. It is trained on a vast corpus of code and documentation.

## Limitations
- Summaries may not always be accurate
- Long files may be truncated due to model context limits
- Complex code structures might not be properly understood