This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # To run command: mesop main.py | |
| import mesop as me | |
| import google.generativeai as genai | |
| import json | |
| import typing_extensions | |
| @me.stateclass | |
| class Article: | |
| title: str |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import google.generativeai as genai | |
| import pandas as pd | |
| import json | |
| import typing_extensions | |
| import streamlit as st | |
| #Gemini | |
| genai.configure(api_key='API_KEY') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //initializing the rgb strip pins | |
| #define b 6 //blue | |
| #define g 5 //green | |
| #define r 3 //red | |
| //initializing the ultrasonic sensor pins | |
| #define echoPin 8 | |
| #define trigPin 12 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from tkinter import * | |
| class Books: | |
| def __init__(self): | |
| self.root = Tk() | |
| self.root.configure(background="light grey") | |
| self.root.title("Books") | |
| self.root.geometry("500x350") |