codebyam commited on
Commit
5e9daa6
·
verified ·
1 Parent(s): 264fe02

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -9
app.py CHANGED
@@ -36,11 +36,7 @@ async def optimize_text(prompt: InputPrompt):
36
  def gen(prompt):
37
  response = client.models.generate_content(
38
  model="gemma-3-4b-it",
39
- contents=prompt,
40
- config=types.GenerateContentConfig(
41
- system_instruction=System_instruction,
42
- thinking_config=types.ThinkingConfig(thinking_budget=0)
43
- ),
44
  )
45
  return response.text
46
 
@@ -285,14 +281,10 @@ async def read_items():
285
  .header > div:last-child {
286
  margin-top: 5px;
287
  }
288
-
289
- /* Chat Elements */
290
  .bubble {
291
  max-width: 90%
292
  font-size: 1em;
293
  }
294
-
295
- /* Input Bar Adjustments */
296
  .input-bar {
297
  padding: 6px;
298
  }
 
36
  def gen(prompt):
37
  response = client.models.generate_content(
38
  model="gemma-3-4b-it",
39
+ contents='<start_of_turn>system\n'+System_instruction+'<end_of_turn>\n<start_of_turn>user\n'+prompt+'<end_of_turn>\n<start_of_turn>model\n'
 
 
 
 
40
  )
41
  return response.text
42
 
 
281
  .header > div:last-child {
282
  margin-top: 5px;
283
  }
 
 
284
  .bubble {
285
  max-width: 90%
286
  font-size: 1em;
287
  }
 
 
288
  .input-bar {
289
  padding: 6px;
290
  }