Ashrafb commited on
Commit
51c4a10
·
1 Parent(s): 52586d2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -90,8 +90,11 @@ def get_prompts(prompt_text):
90
  request_counter += 1
91
  timestamp = f"{time.time()}_{request_counter}"
92
 
 
 
 
93
  # Adjust this line if needed based on the model's input/output specifications
94
- return text_gen(prompt_text, options={"src": "ar", "tgt": "en"} + f" - {timestamp}")
95
 
96
 
97
 
 
90
  request_counter += 1
91
  timestamp = f"{time.time()}_{request_counter}"
92
 
93
+ options = {"src": "ar", "tgt": "en"}
94
+ options.update({"timestamp": timestamp})
95
+
96
  # Adjust this line if needed based on the model's input/output specifications
97
+ return text_gen(prompt_text, options=options)
98
 
99
 
100