增加下载文件功能

This commit is contained in:
w_xiaolizu
2023-04-21 15:40:21 +08:00
parent 472b6a88b4
commit fd6b1755c9
5 changed files with 389 additions and 202 deletions

24
test.py
View File

@ -46,6 +46,26 @@ class ChatGPTForTester:
self.book()
self.demo.launch()
if __name__ == "__main__":
ChatGPTForTester().main()
class MyClass:
def __init__(self):
self.my_attribute1 = ''
def __getattribute__(self, name):
try:
return object.__getattribute__(self, name)
except AttributeError:
return []
def my_method(self):
self.test = '12312312312'
print("This is my method.")
if __name__ == "__main__":
__url = gr.State(f'https://')
print(__url)