asigalov61
commited on
Commit
•
2389791
1
Parent(s):
446db64
Update app.py
Browse files
app.py
CHANGED
@@ -67,7 +67,7 @@ def classify_GPU(input_data):
|
|
67 |
|
68 |
#==================================================================
|
69 |
|
70 |
-
number_of_batches =
|
71 |
|
72 |
# @markdown NOTE: You can increase the number of batches on high-ram GPUs for better classification
|
73 |
|
@@ -90,6 +90,8 @@ def classify_GPU(input_data):
|
|
90 |
out = model.generate(x,
|
91 |
1,
|
92 |
temperature=0.3,
|
|
|
|
|
93 |
return_prime=False,
|
94 |
verbose=False)
|
95 |
|
|
|
67 |
|
68 |
#==================================================================
|
69 |
|
70 |
+
number_of_batches = 1 # @param {type:"slider", min:1, max:100, step:1}
|
71 |
|
72 |
# @markdown NOTE: You can increase the number of batches on high-ram GPUs for better classification
|
73 |
|
|
|
90 |
out = model.generate(x,
|
91 |
1,
|
92 |
temperature=0.3,
|
93 |
+
filter_logits_fn=top_k,
|
94 |
+
filter_kwargs={'k': 1},
|
95 |
return_prime=False,
|
96 |
verbose=False)
|
97 |
|