Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -35,7 +35,7 @@ def call_examples():
|
|
35 |
|
36 |
gr.Interface(fn=code_summarizer,
|
37 |
inputs=gr.inputs.Textbox(
|
38 |
-
lines=
|
39 |
default='',
|
40 |
placeholder='Insert a Python code here',
|
41 |
label='PYTHON CODE'),
|
@@ -43,7 +43,7 @@ gr.Interface(fn=code_summarizer,
|
|
43 |
type='auto',
|
44 |
label='CODE SUMMARY'),
|
45 |
title='Code Summarizer From CodeTrans',
|
46 |
-
description='Summarize any Python code',
|
47 |
article='Additional info: This CodeTrans model is based on the T5-large model architecture pretrained on the Python programming language. This model is trained on tokenized python code functions, which is why it works best with tokenized python functions. It has its own SentencePiece vocabulary model. It used multi-task training on 13 supervised tasks in the software development domain and 7 unsupervised datasets. It is then fine-tuned on the source code summarization task for the python code snippets. The original repository is found in this link: https://github.com/agemagician/CodeTrans',
|
48 |
theme='dark-peach',
|
49 |
live=True,
|
|
|
35 |
|
36 |
gr.Interface(fn=code_summarizer,
|
37 |
inputs=gr.inputs.Textbox(
|
38 |
+
lines=10,
|
39 |
default='',
|
40 |
placeholder='Insert a Python code here',
|
41 |
label='PYTHON CODE'),
|
|
|
43 |
type='auto',
|
44 |
label='CODE SUMMARY'),
|
45 |
title='Code Summarizer From CodeTrans',
|
46 |
+
description='Summarize any Python source code',
|
47 |
article='Additional info: This CodeTrans model is based on the T5-large model architecture pretrained on the Python programming language. This model is trained on tokenized python code functions, which is why it works best with tokenized python functions. It has its own SentencePiece vocabulary model. It used multi-task training on 13 supervised tasks in the software development domain and 7 unsupervised datasets. It is then fine-tuned on the source code summarization task for the python code snippets. The original repository is found in this link: https://github.com/agemagician/CodeTrans',
|
48 |
theme='dark-peach',
|
49 |
live=True,
|