Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -68,7 +68,7 @@ def model_selection_changed(model_name):
|
|
68 |
|
69 |
def generate(id_task, model_name, batch_count, batch_size, text, *args):
|
70 |
job_count = batch_count
|
71 |
-
print(model_name,batch_count
|
72 |
if current.name != model_name:
|
73 |
current.tokenizer = None
|
74 |
current.model = None
|
@@ -105,7 +105,6 @@ def generate(id_task, model_name, batch_count, batch_size, text, *args):
|
|
105 |
<p id='promptgen_res_{index}'>{html.escape(generated_text)}</p>
|
106 |
</div>
|
107 |
</td>
|
108 |
-
<a class='gr-button gr-button-lg gr-button-secondary' onclick="navigator.clipboard.writeText(gradioApp().getElementById('promptgen_res_{index}';).textContent)">copy</a>
|
109 |
</tr>
|
110 |
"""
|
111 |
|
|
|
68 |
|
69 |
def generate(id_task, model_name, batch_count, batch_size, text, *args):
|
70 |
job_count = batch_count
|
71 |
+
print(f"Model:{model_name},Count:{batch_count*batch_size},StartingText:{text}")
|
72 |
if current.name != model_name:
|
73 |
current.tokenizer = None
|
74 |
current.model = None
|
|
|
105 |
<p id='promptgen_res_{index}'>{html.escape(generated_text)}</p>
|
106 |
</div>
|
107 |
</td>
|
|
|
108 |
</tr>
|
109 |
"""
|
110 |
|