Spaces:
Runtime error
Runtime error
A newer version of the Streamlit SDK is available:
1.44.1
metadata
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
- Upload a Python file or paste your code
- Select the types of summaries you want to generate
- Click "Summarize Code"
- 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