Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ from groq import Groq
|
|
3 |
import os
|
4 |
from PIL import Image
|
5 |
|
6 |
-
API_KEY = "
|
7 |
client = Groq(api_key=API_KEY)
|
8 |
|
9 |
# مسار لحفظ الصور المرفوعة
|
@@ -23,7 +23,7 @@ def save_and_process_image(image_path):
|
|
23 |
def chat_with_gpt(user_input, history, image):
|
24 |
history = history or []
|
25 |
messages = [
|
26 |
-
{"role": "system", "content": "Your name is ASI. Your name is an abbreviation of a sentence ai super intelligence. The company that develops you is called hcoding. You are made of a model
|
27 |
{"role": "user", "content": user_input}
|
28 |
]
|
29 |
|
|
|
3 |
import os
|
4 |
from PIL import Image
|
5 |
|
6 |
+
API_KEY = "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"
|
7 |
client = Groq(api_key=API_KEY)
|
8 |
|
9 |
# مسار لحفظ الصور المرفوعة
|
|
|
23 |
def chat_with_gpt(user_input, history, image):
|
24 |
history = history or []
|
25 |
messages = [
|
26 |
+
{"role": "system", "content": "Your name is ASI. Your name is an abbreviation of a sentence ai super intelligence. The company that develops you is called hcoding. You are made of a model groq."},
|
27 |
{"role": "user", "content": user_input}
|
28 |
]
|
29 |
|