Update app.py
Browse files
app.py
CHANGED
|
@@ -231,8 +231,8 @@ def process_text(input_text, primary1, synonyms1, primary2, synonyms2, primary3,
|
|
| 231 |
|
| 232 |
# Create the Gradio interface
|
| 233 |
def create_interface():
|
| 234 |
-
#
|
| 235 |
-
with gr.Blocks(title="Keyword Tagging Tool") as demo:
|
| 236 |
gr.HTML("""
|
| 237 |
<h1>Controlled Vocabluary Keyword Tagging Tool</h1>
|
| 238 |
|
|
@@ -402,5 +402,5 @@ def create_interface():
|
|
| 402 |
|
| 403 |
if __name__ == "__main__":
|
| 404 |
demo = create_interface()
|
| 405 |
-
# Gradio 6.
|
| 406 |
-
demo.launch(ssr_mode=False
|
|
|
|
| 231 |
|
| 232 |
# Create the Gradio interface
|
| 233 |
def create_interface():
|
| 234 |
+
# theme stays in gr.Blocks(), ssr_mode goes in launch()
|
| 235 |
+
with gr.Blocks(title="Keyword Tagging Tool", theme=gr.themes.Soft()) as demo:
|
| 236 |
gr.HTML("""
|
| 237 |
<h1>Controlled Vocabluary Keyword Tagging Tool</h1>
|
| 238 |
|
|
|
|
| 402 |
|
| 403 |
if __name__ == "__main__":
|
| 404 |
demo = create_interface()
|
| 405 |
+
# Gradio 5.x/6.x compatibility: only ssr_mode goes in launch()
|
| 406 |
+
demo.launch(ssr_mode=False)
|