Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -280,7 +280,7 @@ with gr.Blocks() as demo:
|
|
280 |
btn.click(chat, [inp, user_state], [output, user_state])
|
281 |
btn.click(clear, inp, inp)
|
282 |
gr.Markdown("""### need help? got feedback? have thoughts? etc. ➜ Join the [Discord](https://discord.gg/KvG3azf39U)""")
|
283 |
-
gr.Examples(examples=['''---------------------------------------------------------------------------
|
284 |
RuntimeError Traceback (most recent call last)
|
285 |
/var/folders/49/9g9lxm9d3f3br8zlg2l2fmz80000gn/T/ipykernel_1349/2634282627.py in <module>
|
286 |
----> 1 torch.onnx.export(model, x, "output.onnx")
|
@@ -313,13 +313,13 @@ RuntimeError Traceback (most recent call last)
|
|
313 |
583
|
314 |
584 # we now record some ops like ones/zeros
|
315 |
|
316 |
-
RuntimeError: outerNode->outputs().size() == node->inputs().size() INTERNAL ASSERT FAILED at "/Users/runner/work/pytorch/pytorch/pytorch/torch/csrc/jit/passes/dead_code_elimination.cpp":140, please report a bug to PyTorch.''', '''error[E0382]: use of moved value: `primes`
|
317 |
--> src/main.rs:9:31
|
318 |
|
|
319 |
9 | if vectorIsPrime(num, primes) {
|
320 |
| ^^^^^^ value moved here, in previous iteration of loop
|
321 |
|
|
322 |
= note: move occurs because `primes` has type `std::vec::Vec<u64>`, which does not implement the `Copy` trait
|
323 |
-
''', "Uncaught Error: Invariant Violation: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object."],inputs=inp, cache_examples=False,)
|
324 |
if __name__ == "__main__":
|
325 |
demo.launch(debug=True)
|
|
|
280 |
btn.click(chat, [inp, user_state], [output, user_state])
|
281 |
btn.click(clear, inp, inp)
|
282 |
gr.Markdown("""### need help? got feedback? have thoughts? etc. ➜ Join the [Discord](https://discord.gg/KvG3azf39U)""")
|
283 |
+
gr.Examples(examples=['''PYTORCH: ---------------------------------------------------------------------------
|
284 |
RuntimeError Traceback (most recent call last)
|
285 |
/var/folders/49/9g9lxm9d3f3br8zlg2l2fmz80000gn/T/ipykernel_1349/2634282627.py in <module>
|
286 |
----> 1 torch.onnx.export(model, x, "output.onnx")
|
|
|
313 |
583
|
314 |
584 # we now record some ops like ones/zeros
|
315 |
|
316 |
+
RuntimeError: outerNode->outputs().size() == node->inputs().size() INTERNAL ASSERT FAILED at "/Users/runner/work/pytorch/pytorch/pytorch/torch/csrc/jit/passes/dead_code_elimination.cpp":140, please report a bug to PyTorch.''', '''RUST: error[E0382]: use of moved value: `primes`
|
317 |
--> src/main.rs:9:31
|
318 |
|
|
319 |
9 | if vectorIsPrime(num, primes) {
|
320 |
| ^^^^^^ value moved here, in previous iteration of loop
|
321 |
|
|
322 |
= note: move occurs because `primes` has type `std::vec::Vec<u64>`, which does not implement the `Copy` trait
|
323 |
+
''', "REACT: Uncaught Error: Invariant Violation: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object."],inputs=inp, cache_examples=False,)
|
324 |
if __name__ == "__main__":
|
325 |
demo.launch(debug=True)
|