Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -375,6 +375,15 @@ custom_theme = gr.themes.Default(
|
|
| 375 |
token = os.environ["TOKEN"]
|
| 376 |
model=os.environ["MODEL"]
|
| 377 |
loaded_demo = gr.load(model, src="spaces", token=token)
|
| 378 |
-
with gr.Blocks(fill_height=True,css=CSS_STYLES,theme=custom_theme
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 379 |
loaded_demo.render()
|
| 380 |
demo.launch(show_api=False, show_error=False, quiet=True, debug=False)
|
|
|
|
| 375 |
token = os.environ["TOKEN"]
|
| 376 |
model=os.environ["MODEL"]
|
| 377 |
loaded_demo = gr.load(model, src="spaces", token=token)
|
| 378 |
+
with gr.Blocks(fill_height=True,css=CSS_STYLES,theme=custom_theme,js="""
|
| 379 |
+
() => {
|
| 380 |
+
document.title ='AskCyph™ Chat - Cypher Tech Inc.';
|
| 381 |
+
const link = document.querySelector("link[rel~='icon']") || document.createElement('link');
|
| 382 |
+
link.type = 'image/svg+xml';
|
| 383 |
+
link.rel = 'icon';
|
| 384 |
+
link.href = 'https://cms.cypherchat.app/uploads/favicon_8bc904ca6b.svg';
|
| 385 |
+
document.getElementsByTagName('head')[0].appendChild(link);
|
| 386 |
+
}
|
| 387 |
+
""",) as demo:
|
| 388 |
loaded_demo.render()
|
| 389 |
demo.launch(show_api=False, show_error=False, quiet=True, debug=False)
|