Change domain
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ TOKEN = os.environ.get("TOKEN", None)
|
|
10 |
|
11 |
PLACEHOLDER = """
|
12 |
<div style="padding: 30px; text-align: center; display: flex; flex-direction: column; align-items: center;">
|
13 |
-
<img src="https://cdn.cosmosytu.
|
14 |
<h1 style="font-size: 28px; margin-bottom: 2px; opacity: 0.55;">Cosmos LLM</h1>
|
15 |
<p style="font-size: 18px; margin-bottom: 2px; opacity: 0.65;">Bana herhangi bir şey sorabilirsiniz...</p>
|
16 |
</div>
|
@@ -48,7 +48,7 @@ def chat_cosmosllm(message: str, history: list, conversation_id: str, parent_mes
|
|
48 |
if parent_message_id:
|
49 |
body["parent_message_id"] = parent_message_id
|
50 |
|
51 |
-
response = requests.post(f"https://model.cosmosytu.
|
52 |
|
53 |
full_response = ""
|
54 |
new_parent_message_id = parent_message_id
|
|
|
10 |
|
11 |
PLACEHOLDER = """
|
12 |
<div style="padding: 30px; text-align: center; display: flex; flex-direction: column; align-items: center;">
|
13 |
+
<img src="https://cdn.cosmosytu.com/images/cosmos_transparent.png" style="width: 80%; max-width: 550px; height: auto; opacity: 0.55; ">
|
14 |
<h1 style="font-size: 28px; margin-bottom: 2px; opacity: 0.55;">Cosmos LLM</h1>
|
15 |
<p style="font-size: 18px; margin-bottom: 2px; opacity: 0.65;">Bana herhangi bir şey sorabilirsiniz...</p>
|
16 |
</div>
|
|
|
48 |
if parent_message_id:
|
49 |
body["parent_message_id"] = parent_message_id
|
50 |
|
51 |
+
response = requests.post(f"https://model.cosmosytu.com{ENDPOINT}", json=body, headers=headers, stream=True)
|
52 |
|
53 |
full_response = ""
|
54 |
new_parent_message_id = parent_message_id
|