rbn2008k commited on
Commit
1ea6945
1 Parent(s): 443b0e0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
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=model_id,
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=1.1,
168
- top_p=0.9,
169
- frequency_penalty=0.9,
170
- presence_penalty=0.9,
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 = ""