JosephH commited on
Commit
f965943
·
verified ·
1 Parent(s): 223d827

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -10,6 +10,7 @@ pb = Predibase(api_token=top_secret_key)
10
  client = pb.deployments.client("gemma-2-9b")
11
 
12
  def process_text(text,temperature):
 
13
  text_input = text
14
  control_prompt = f"""You are an advanced translation model specializing in translating texts from the Ottoman language (old Turkish) to English. Your task is to produce accurate, fluent, and contextually appropriate translations. Maintain the original meaning, tone, and style of the text as much as possible. For religious or culturally significant phrases, try to preserve their essence and convey the intended respect and significance.
15
 
 
10
  client = pb.deployments.client("gemma-2-9b")
11
 
12
  def process_text(text,temperature):
13
+ print("temparetaure is ", temperature)
14
  text_input = text
15
  control_prompt = f"""You are an advanced translation model specializing in translating texts from the Ottoman language (old Turkish) to English. Your task is to produce accurate, fluent, and contextually appropriate translations. Maintain the original meaning, tone, and style of the text as much as possible. For religious or culturally significant phrases, try to preserve their essence and convey the intended respect and significance.
16