Spaces:
Running
Running
MarcusLoren
commited on
Commit
•
3ff4bd7
1
Parent(s):
21129f6
Update app.py
Browse files
app.py
CHANGED
@@ -24,7 +24,7 @@ def predict(text, num_input, num_temp):
|
|
24 |
output = []
|
25 |
current_time = time.time()
|
26 |
formatted_time = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(current_time))
|
27 |
-
print(formatted_time, " Input:", text, "num_input", num_input, "num_temp",num_temp
|
28 |
if num_input > 1:
|
29 |
for label in labels:
|
30 |
output.append((transformer.generate(texts = [label ] * num_input, temperature = num_temp)))
|
|
|
24 |
output = []
|
25 |
current_time = time.time()
|
26 |
formatted_time = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(current_time))
|
27 |
+
print(formatted_time, " Input:", text, "num_input", num_input, "num_temp",num_temp)
|
28 |
if num_input > 1:
|
29 |
for label in labels:
|
30 |
output.append((transformer.generate(texts = [label ] * num_input, temperature = num_temp)))
|