Update app.py
Browse files
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 |
-
|
| 96 |
-
|
| 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 |
-
|
|
|
|
|
|
| 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
|