tlemagueresse commited on
Commit
d856028
·
1 Parent(s): 5585a48

add app and display readme in the front

Browse files
Files changed (3) hide show
  1. README.md +2 -2
  2. app.py +15 -0
  3. requirements.txt +2 -1
README.md CHANGED
@@ -3,8 +3,8 @@ title: "Adaptive T5 Summarization"
3
  emoji: 📝
4
  colorFrom: blue
5
  colorTo: indigo
6
- sdk: docker
7
- app_file: ""
8
  ---
9
 
10
  # Adaptive T5 Summarization
 
3
  emoji: 📝
4
  colorFrom: blue
5
  colorTo: indigo
6
+ sdk: gradio
7
+ app_file: "app.py"
8
  ---
9
 
10
  # Adaptive T5 Summarization
app.py ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ # Load README content
4
+ with open("README.md", "r", encoding="utf-8") as f:
5
+ readme_content = f.read()
6
+
7
+ # Gradio interface to display README
8
+ def show_readme():
9
+ return readme_content
10
+
11
+ app = gr.Blocks()
12
+ with app:
13
+ gr.Markdown(readme_content)
14
+
15
+ app.launch()
requirements.txt CHANGED
@@ -8,4 +8,5 @@ rouge_score
8
  bert_score
9
  scikit-learn
10
  nltk
11
- textstat
 
 
8
  bert_score
9
  scikit-learn
10
  nltk
11
+ textstat
12
+ gradio