Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -111,7 +111,7 @@ def inference_calling_idefics(image_path, question=""):
|
|
111 |
try:
|
112 |
response = ""
|
113 |
for message in client.chat_completion(
|
114 |
-
model=
|
115 |
messages=[
|
116 |
{
|
117 |
"role": "system",
|
@@ -164,10 +164,10 @@ async def get_completion(client, event, user_id, prompt):
|
|
164 |
model=model,
|
165 |
messages=messages,
|
166 |
max_tokens=512,
|
167 |
-
temperature=
|
168 |
-
top_p=0
|
169 |
-
frequency_penalty=0
|
170 |
-
presence_penalty=0
|
171 |
stream=True
|
172 |
)
|
173 |
message = ""
|
|
|
111 |
try:
|
112 |
response = ""
|
113 |
for message in client.chat_completion(
|
114 |
+
model=image_model,
|
115 |
messages=[
|
116 |
{
|
117 |
"role": "system",
|
|
|
164 |
model=model,
|
165 |
messages=messages,
|
166 |
max_tokens=512,
|
167 |
+
temperature=0.7,
|
168 |
+
top_p=1.0,
|
169 |
+
frequency_penalty=1.0,
|
170 |
+
presence_penalty=1.0,
|
171 |
stream=True
|
172 |
)
|
173 |
message = ""
|