Skip to content

Instantly share code, notes, and snippets.

View s-espriz's full-sized avatar

Sepehr s-espriz

  • Iran Mercentile Exchange
  • Tehran
View GitHub Profile
@s-espriz
s-espriz / PiperSimpleUI.py
Created January 9, 2025 21:11
this is a simple UI suggestion for Using Piper Backend
import streamlit as st
import requests
url = 'http://127.0.0.1:8001/invoke/'
st.title("Piper")
# Initialize chat history
@s-espriz
s-espriz / getting_news.py
Created November 5, 2024 13:57
This script fetch the News and corresponding reactions from a given telegram channel.
import pandas as pd
from telethon import TelegramClient
import datetime
import re
# Replace these with your own values
api_id = 1111 # Your API ID
api_hash = 'Your API hash'
channel_username = 'Akharinkhabar'