Xyro123 commited on
Commit
9e963ec
·
verified ·
1 Parent(s): eccf75b

Update app/app.py

Browse files
Files changed (1) hide show
  1. app/app.py +14 -2
app/app.py CHANGED
@@ -15,6 +15,14 @@ from utils import MODELS_PROVIDERS_MAP, PROVIDERS_API_KEYS, REASONER_PROVIDERS_M
15
  from settings import PROFILES_SETTINGS
16
  import os
17
  from aicore.config import LlmConfig
 
 
 
 
 
 
 
 
18
 
19
  DEFAULT_REASONER_CONFIG = {
20
  "openai": LlmConfig(
@@ -65,6 +73,8 @@ async def chat_profile():
65
  cl.ChatProfile(
66
  name="ZeppFusion",
67
  markdown_description="Talk with the lastest Llm models! Powered by AiCore, check it on GitHub, link in Readme",
 
 
68
  ),
69
  cl.ChatProfile(
70
  name="OpenAi",
@@ -113,9 +123,11 @@ async def start_chat():
113
  cl.user_session.set(
114
  "llm", llm
115
  )
116
-
 
117
  settings = await cl.ChatSettings(
118
- PROFILES_SETTINGS.get(user_profile)
 
119
  ).send()
120
 
121
 
 
15
  from settings import PROFILES_SETTINGS
16
  import os
17
  from aicore.config import LlmConfig
18
+ import gradio as gr
19
+
20
+ with gr.Blocks(css="""
21
+ .chat-logo::before {
22
+ content: url("public/avatar.png");
23
+ }
24
+ """) as app:
25
+ ...
26
 
27
  DEFAULT_REASONER_CONFIG = {
28
  "openai": LlmConfig(
 
73
  cl.ChatProfile(
74
  name="ZeppFusion",
75
  markdown_description="Talk with the lastest Llm models! Powered by AiCore, check it on GitHub, link in Readme",
76
+
77
+ settings=PROFILES_SETTINGS.get("ZeppFusion")
78
  ),
79
  cl.ChatProfile(
80
  name="OpenAi",
 
123
  cl.user_session.set(
124
  "llm", llm
125
  )
126
+
127
+ profile_settings = PROFILES_SETTINGS.get(user_profile, {})
128
  settings = await cl.ChatSettings(
129
+ PROFILES_SETTINGS.get("messages",
130
+ [])
131
  ).send()
132
 
133