Commit
·
17b2f4f
1
Parent(s):
df7df20
fix typo
Browse files
app.py
CHANGED
@@ -186,7 +186,7 @@ def evaluate(
|
|
186 |
)
|
187 |
except Exception as e:
|
188 |
print(e)
|
189 |
-
return f"please reduce the input length. Currently, {len(inputs['input_ids'][0])}
|
190 |
input_ids = inputs["input_ids"].to(device)
|
191 |
generation_config = GenerationConfig(
|
192 |
temperature=temperature,
|
|
|
186 |
)
|
187 |
except Exception as e:
|
188 |
print(e)
|
189 |
+
return f"please reduce the input length. Currently, {len(inputs['input_ids'][0])} tokens are used.", gr.update(interactive=True), gr.update(interactive=True)
|
190 |
input_ids = inputs["input_ids"].to(device)
|
191 |
generation_config = GenerationConfig(
|
192 |
temperature=temperature,
|