Coder Social home page Coder Social logo

jaspurrbot's People

Contributors

askill avatar dependabot-preview[bot] avatar dependabot-support avatar sebrut avatar tianmaru avatar

Stargazers

 avatar

Watchers

 avatar  avatar

jaspurrbot's Issues

/jodel command leads to exception and no output

2018-10-03 07:08:13.896461: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
Using TensorFlow backend.
2018-10-03 07:09:15,563 - telegram.ext.dispatcher - ERROR - An uncaught error was raised while processing the update
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/telegram/ext/dispatcher.py", line 279, in process_update
    handler.handle_update(update, self)
  File "/usr/local/lib/python3.6/site-packages/telegram/ext/commandhandler.py", line 173, in handle_update
    return self.callback(dispatcher.bot, update, **optional_args)
  File "./main.py", line 129, in jodel
    message = textgen.generate(1, return_as_list=True)[0]
  File "/usr/local/lib/python3.6/site-packages/textgenrnn/textgenrnn.py", line 87, in generate
    top_n)
  File "/usr/local/lib/python3.6/site-packages/textgenrnn/utils.py", line 91, in textgenrnn_generate
    model.predict(encoded_text, batch_size=1)[0],
  File "/usr/local/lib/python3.6/site-packages/keras/engine/training.py", line 1832, in predict
    self._make_predict_function()
  File "/usr/local/lib/python3.6/site-packages/keras/engine/training.py", line 1031, in _make_predict_function
    **kwargs)
  File "/usr/local/lib/python3.6/site-packages/keras/backend/tensorflow_backend.py", line 2506, in function
    return Function(inputs, outputs, updates=updates, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/keras/backend/tensorflow_backend.py", line 2449, in __init__
    with tf.control_dependencies(self.outputs):
  File "/usr/local/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 5002, in control_dependencies
    return get_default_graph().control_dependencies(control_inputs)
  File "/usr/local/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 4541, in control_dependencies
    c = self.as_graph_element(c)
  File "/usr/local/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 3488, in as_graph_element
    return self._as_graph_element_locked(obj, allow_tensor, allow_operation)
  File "/usr/local/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 3567, in _as_graph_element_locked
    raise ValueError("Tensor %s is not an element of this graph." % obj)
ValueError: Tensor Tensor("output/Softmax:0", shape=(?, 106), dtype=float32) is not an element of this graph.

Add option to disable tensorflow part

The current instance isn't running because it uses too much memory and disrupts other services.

To save RAM, there should be an option (e.g. by environment variable) to disable the tensorflow component and not load the model into memory.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.