ramedde commited on
Commit
1226645
·
verified ·
1 Parent(s): 23917c2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -5
app.py CHANGED
@@ -112,10 +112,6 @@ def chat(user_fact, history):
112
  {"role": "system", "content": SYSTEM_PROMPT},
113
  {"role": "user", "content": f"الفعل: {user_fact}"}
114
  ],
115
- "stream": True,
116
- "temperature": 0.9,
117
- "top_p": 0.9,
118
- "max_tokens": 300,
119
  }
120
 
121
  try:
@@ -123,7 +119,7 @@ def chat(user_fact, history):
123
  "http://127.0.0.1:8080/v1/chat/completions",
124
  json=payload,
125
  stream=True,
126
- timeout=300
127
  )
128
  r.raise_for_status()
129
 
 
112
  {"role": "system", "content": SYSTEM_PROMPT},
113
  {"role": "user", "content": f"الفعل: {user_fact}"}
114
  ],
 
 
 
 
115
  }
116
 
117
  try:
 
119
  "http://127.0.0.1:8080/v1/chat/completions",
120
  json=payload,
121
  stream=True,
122
+ timeout=400
123
  )
124
  r.raise_for_status()
125