This file contains 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 time | |
import openai | |
import streamlit as st | |
assistant_id = 'asst_XNwQHWKtsPojN9x29UK4wbrX' | |
client = openai.OpenAI() | |
# 创建 assistant 执行线程 | |
thread = openai.beta.threads.create() |
This file contains 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 inspect | |
import traceback | |
from functools import wraps | |
import openai | |
openai.api_base = '' | |
openai.api_key = '' | |
allow_class_methods = ['__init__'] |
This file contains 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
<?php | |
/** | |
* Catch php output buffering data over jQuery AJAX | |
* | |
* @author: Sohel Rana (me.sohelrana@gmail.com) | |
* @author url: https://blog.sohelrana.me | |
* @link: https://blog.sohelrana.me/catch-php-output-buffering-data-jquery-ajax/ | |
* @licence MIT | |
*/ |
This file contains 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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
''' | |
import sys, pprint | |
from pysideuic import compileUi | |
pyfile = open("/nas/projects/development/pipeline/bs_pipeline/cacheExportUI.py", 'w') | |
compileUi("/nas/projects/development/pipeline/bs_pipeline/ui/cacheExport.ui", pyfile, False, 4, False) | |
pyfile.close() | |
''' |