Azidan commited on
Commit
e45c1f2
·
verified ·
1 Parent(s): 542de0c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -7
app.py CHANGED
@@ -92,12 +92,9 @@ interface = gr.Interface(
92
  outputs=gr.Textbox(label="Generated Summary"),
93
  title="Lecture Summarizer",
94
  description="Upload a lecture file (PDF/DOCX/TXT) or paste text. Adjust the slider for shorter or more detailed summaries.",
95
- theme="soft",
96
- allow_flagging="never",
97
- examples=[
98
- ["Sample lecture: Photosynthesis is the process by which plants convert light energy into chemical energy...", None, 0.40],
99
- [None, "example_lecture.pdf", 0.30] # You can upload a sample later if wanted
100
- ]
101
  )
102
 
103
- interface.launch()
 
 
92
  outputs=gr.Textbox(label="Generated Summary"),
93
  title="Lecture Summarizer",
94
  description="Upload a lecture file (PDF/DOCX/TXT) or paste text. Adjust the slider for shorter or more detailed summaries.",
95
+ flagging_mode="never", # This disables flagging correctly
96
+ # NO theme here anymore
 
 
 
 
97
  )
98
 
99
+ # Launch with theme here (Gradio 6.0+ requirement)
100
+ interface.launch(theme="soft") # Or gr.themes.Soft() if you want to import gr.themes