Renamed project
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ API_KEY = os.getenv('OPEN_AI_API_KEY')
|
|
16 |
|
17 |
DESCRIPTION = '''
|
18 |
<div>
|
19 |
-
<h1 style="text-align: center;">
|
20 |
<p>This uses Llama 3 and GPT-4o as generation, both of these make the final generation. <a href="https://huggingface.co/meta-llama/Meta-Llama-3-8B"><b>Llama3-8b</b></a> and <a href="https://platform.openai.com/docs/models/gpt-4o"><b>GPT-4o</b></a></p>
|
21 |
</div>
|
22 |
'''
|
@@ -60,7 +60,7 @@ def gpt_4o_generation(llama_input: str,
|
|
60 |
|
61 |
stream = client.chat.completions.create(
|
62 |
model="gpt-4o",
|
63 |
-
messages=[{"role": "system", "content": "You are a helpful assistant called '
|
64 |
{"role": "user", "content": prompt}],
|
65 |
stream=True,
|
66 |
)
|
|
|
16 |
|
17 |
DESCRIPTION = '''
|
18 |
<div>
|
19 |
+
<h1 style="text-align: center;">Loki ποΈ</h1>
|
20 |
<p>This uses Llama 3 and GPT-4o as generation, both of these make the final generation. <a href="https://huggingface.co/meta-llama/Meta-Llama-3-8B"><b>Llama3-8b</b></a> and <a href="https://platform.openai.com/docs/models/gpt-4o"><b>GPT-4o</b></a></p>
|
21 |
</div>
|
22 |
'''
|
|
|
60 |
|
61 |
stream = client.chat.completions.create(
|
62 |
model="gpt-4o",
|
63 |
+
messages=[{"role": "system", "content": "You are a helpful assistant called 'Loki'."},
|
64 |
{"role": "user", "content": prompt}],
|
65 |
stream=True,
|
66 |
)
|