Update app.py
Browse files
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=
|
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 |
|