Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -122,6 +122,8 @@ with gr.Blocks(title=f"{APP_Name} v{APP_Version}", css=CSS) as demo:
|
|
| 122 |
label="Models",
|
| 123 |
info="Select Your Model Here",
|
| 124 |
)
|
|
|
|
|
|
|
| 125 |
def _update_info(m: str) -> str:
|
| 126 |
title = f"**{m}**"
|
| 127 |
desc = MODEL_INFO.get(m, "")
|
|
@@ -129,7 +131,7 @@ with gr.Blocks(title=f"{APP_Name} v{APP_Version}", css=CSS) as demo:
|
|
| 129 |
model_choice.change(_update_info, model_choice, info_md)
|
| 130 |
|
| 131 |
gr.Image(LOGO_PATH, show_label=False, container=False)
|
| 132 |
-
|
| 133 |
|
| 134 |
|
| 135 |
def on_submit(msg, chat_messages):
|
|
|
|
| 122 |
label="Models",
|
| 123 |
info="Select Your Model Here",
|
| 124 |
)
|
| 125 |
+
|
| 126 |
+
info_md = gr.Markdown(MODEL_INFO.get(MODELS[0], ""))
|
| 127 |
def _update_info(m: str) -> str:
|
| 128 |
title = f"**{m}**"
|
| 129 |
desc = MODEL_INFO.get(m, "")
|
|
|
|
| 131 |
model_choice.change(_update_info, model_choice, info_md)
|
| 132 |
|
| 133 |
gr.Image(LOGO_PATH, show_label=False, container=False)
|
| 134 |
+
|
| 135 |
|
| 136 |
|
| 137 |
def on_submit(msg, chat_messages):
|