Skip to content

Instantly share code, notes, and snippets.

View youtube-jocoding's full-sized avatar

조코딩 JoCoding youtube-jocoding

View GitHub Profile
{
"openapi": "3.0.0",
"info": {
"title": "7Timer Weather Forecast API",
"description": "API for accessing weather forecasts from 7Timer.",
"version": "1.0.0"
},
"servers": [
{
"url": "https://www.7timer.info",
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Chat UI Screen</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.3.0/css/all.min.css" integrity="sha512-SzlrxWUlpfuzQ+pcUCosxcglQRNAq/DZjVsC0lE40xsADsfeQoEypE+enwcOiGjk/bSuGGKHEyjSoQ1zVisanQ==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<style>
body {
margin: 0;
padding: 0;
from dotenv import load_dotenv
import os
from openai import OpenAI
import streamlit as st
import time
load_dotenv()
API_KEY = os.environ['OPENAI_API_KEY']
client = OpenAI(api_key=API_KEY)
from dotenv import load_dotenv
import os
from openai import OpenAI
import streamlit as st
import time
load_dotenv()
API_KEY = os.environ['OPENAI_API_KEY']
client = OpenAI(api_key=API_KEY)
from dotenv import load_dotenv
import os
from openai import OpenAI
import streamlit as st
load_dotenv()
API_KEY = os.environ['OPENAI_API_KEY']
client = OpenAI(api_key=API_KEY)
from dotenv import load_dotenv
import os
from openai import OpenAI
load_dotenv()
API_KEY = os.environ['OPENAI_API_KEY']
client = OpenAI(api_key=API_KEY)
file = client.files.create(
from dotenv import load_dotenv
import os
from openai import OpenAI
load_dotenv()
API_KEY = os.environ['OPENAI_API_KEY']
client = OpenAI(api_key=API_KEY)
#asst_WYPrmrww2xZ0jqsRyMyBD6Xu
from dotenv import load_dotenv
import os
from openai import OpenAI
load_dotenv()
API_KEY = os.environ['OPENAI_API_KEY']
client = OpenAI(api_key=API_KEY)
#asst_18fIjCf97zSZnQA6HCHATxfh
__import__('pysqlite3')
import sys
sys.modules['sqlite3'] = sys.modules.pop('pysqlite3')
from langchain.document_loaders import PyPDFLoader
from langchain.text_splitter import RecursiveCharacterTextSplitter
from langchain.vectorstores import Chroma
from langchain.embeddings import OpenAIEmbeddings
from langchain.chat_models import ChatOpenAI
from langchain.chains import RetrievalQA