Spaces:
Runtime error
Runtime error
PierreHanna
commited on
Commit
β’
f65a9bb
1
Parent(s):
e38c032
Update app.py
Browse files
app.py
CHANGED
@@ -57,8 +57,12 @@ def process(prompt, lang):
|
|
57 |
bert_model = hub.KerasLayer(tfhub_handle_encoder)
|
58 |
|
59 |
now = datetime.datetime.now()
|
60 |
-
print(
|
|
|
|
|
61 |
print("Text input : ", prompt)
|
|
|
|
|
62 |
prompt=[prompt]
|
63 |
text_preprocessed = bert_preprocess_model([np.array(prompt)])
|
64 |
embed_prompt = bert_model(text_preprocessed)
|
|
|
57 |
bert_model = hub.KerasLayer(tfhub_handle_encoder)
|
58 |
|
59 |
now = datetime.datetime.now()
|
60 |
+
print()
|
61 |
+
print('*************')
|
62 |
+
print("Current Time: ", str(now))
|
63 |
print("Text input : ", prompt)
|
64 |
+
print('*************')
|
65 |
+
print()
|
66 |
prompt=[prompt]
|
67 |
text_preprocessed = bert_preprocess_model([np.array(prompt)])
|
68 |
embed_prompt = bert_model(text_preprocessed)
|