Coder Social home page Coder Social logo

paulovcmedeiros / pyrobbot Goto Github PK

View Code? Open in Web Editor NEW
63.0 1.0 48.0 1.02 MB

Chat with GPT LLMs over voice, UI & terminal, all with access to the internet. Powered by OpenAI.

License: MIT License

Python 100.00%
chatbot chatgpt gpt openai-api streamlit chatbot-application chatgpt-api python python-chat-application python-chatbot speech-recognition speech-to-text text-to-speech voice-chat-bot voice-recognition voice-gpt websearch latest-events artificial-intelligence personal-assistant

pyrobbot's Issues

Doesn't work on macOS

Describe the bug
A clear and concise description of what the bug is.

Screenshot of Safari at May 21, 2024 at 5_24_49 PM

  You can now view your Streamlit app in your browser.

  Local URL: http://localhost:8502
  Network URL: http://192.168.1.215:8502

  For better performance, install the Watchdog module:

  $ xcode-select --install
  $ pip install watchdog

2024-05-21 17:20:42.020 Uncaught app exception
Traceback (most recent call last):
  File "/Users/rogaha/development/nextron/ai-agents/auto-gen/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 600, in _run_script
    exec(code, module.__dict__)
  File "/Users/rogaha/development/nextron/ai-agents/auto-gen/lib/python3.11/site-packages/pyrobbot/app/app.py", line 17, in <module>
    run_app()
  File "/Users/rogaha/development/nextron/ai-agents/auto-gen/lib/python3.11/site-packages/pyrobbot/app/app.py", line 13, in run_app
    ).render()
      ^^^^^^^^
  File "/Users/rogaha/development/nextron/ai-agents/auto-gen/lib/python3.11/site-packages/pyrobbot/app/multipage.py", line 708, in render
    return super().render(**kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/rogaha/development/nextron/ai-agents/auto-gen/lib/python3.11/site-packages/pyrobbot/app/multipage.py", line 465, in render
    self.handle_ui_page_selection(**kwargs)
  File "/Users/rogaha/development/nextron/ai-agents/auto-gen/lib/python3.11/site-packages/pyrobbot/app/multipage.py", line 602, in handle_ui_page_selection
    new_configs = self.selected_page.chat_obj.configs.model_validate(
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/rogaha/development/nextron/ai-agents/auto-gen/lib/python3.11/site-packages/pydantic/main.py", line 551, in model_validate
    return cls.__pydantic_validator__.validate_python(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pydantic_core._pydantic_core.ValidationError: 1 validation error for VoiceChatConfigs
ai_instructions
  Input should be a valid tuple [type=tuple_type, input_value="('You answer correctly.'...citly asked to do so.')", input_type=str]
    For further information visit https://errors.pydantic.dev/2.7/v/tuple_type

To Reproduce
Steps to reproduce the behavior:

  1. pip uninstall git+https://github.com/paulovcmedeiros/pyRobBot.git
  2. run: rob

Expected behavior
Open the streamlit application locally.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Chat with STT in ui

Hello, this rep is a good source to learn. I want to chat with ai in streamlit, but I dont find the record button or voice button when using this app. Is there any suggestion?

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.