Update app.py
Browse files
app.py
CHANGED
|
@@ -621,7 +621,8 @@ def process_text(text, selected_model, num_keywords, ngram_min, ngram_max, progr
|
|
| 621 |
|
| 622 |
# Create Gradio interface
|
| 623 |
def create_interface():
|
| 624 |
-
|
|
|
|
| 625 |
gr.Markdown("""
|
| 626 |
# Keyword Extraction Explorer Tool
|
| 627 |
|
|
@@ -831,4 +832,5 @@ def create_interface():
|
|
| 831 |
|
| 832 |
if __name__ == "__main__":
|
| 833 |
demo = create_interface()
|
| 834 |
-
|
|
|
|
|
|
| 621 |
|
| 622 |
# Create Gradio interface
|
| 623 |
def create_interface():
|
| 624 |
+
# Note: theme moved to launch() for Gradio 6.0 compatibility
|
| 625 |
+
with gr.Blocks(title="Keyword Extraction Tool") as demo:
|
| 626 |
gr.Markdown("""
|
| 627 |
# Keyword Extraction Explorer Tool
|
| 628 |
|
|
|
|
| 832 |
|
| 833 |
if __name__ == "__main__":
|
| 834 |
demo = create_interface()
|
| 835 |
+
# Gradio 6.0 compatibility: theme and ssr_mode moved to launch()
|
| 836 |
+
demo.launch(ssr_mode=False, theme=gr.themes.Soft())
|