mirror of
https://github.com/gradio-app/gradio.git
synced 2025-01-06 10:25:17 +08:00
latest pypi version
This commit is contained in:
parent
d39e50c6be
commit
e6915a6ee5
@ -249,12 +249,12 @@ def serve_files_in_background(interface, port, directory_to_serve=None):
|
||||
|
||||
# Now loop forever
|
||||
def serve_forever():
|
||||
try:
|
||||
while True:
|
||||
# sys.stdout.flush()
|
||||
httpd.serve_forever()
|
||||
except (KeyboardInterrupt, OSError):
|
||||
httpd.server_close()
|
||||
# try:
|
||||
while True:
|
||||
# sys.stdout.flush()
|
||||
httpd.serve_forever()
|
||||
# except (KeyboardInterrupt, OSError):
|
||||
# httpd.server_close()
|
||||
|
||||
thread = threading.Thread(target=serve_forever, daemon=True)
|
||||
thread.start()
|
||||
|
Binary file not shown.
@ -1,6 +1,6 @@
|
||||
Metadata-Version: 1.0
|
||||
Name: gradio
|
||||
Version: 0.7.4
|
||||
Version: 0.7.5
|
||||
Summary: Python library for easily interacting with trained machine learning models
|
||||
Home-page: https://github.com/abidlabs/gradio
|
||||
Author: Abubakar Abid
|
||||
|
@ -249,12 +249,12 @@ def serve_files_in_background(interface, port, directory_to_serve=None):
|
||||
|
||||
# Now loop forever
|
||||
def serve_forever():
|
||||
try:
|
||||
while True:
|
||||
# sys.stdout.flush()
|
||||
httpd.serve_forever()
|
||||
except (KeyboardInterrupt, OSError):
|
||||
httpd.server_close()
|
||||
# try:
|
||||
while True:
|
||||
# sys.stdout.flush()
|
||||
httpd.serve_forever()
|
||||
# except (KeyboardInterrupt, OSError):
|
||||
# httpd.server_close()
|
||||
|
||||
thread = threading.Thread(target=serve_forever, daemon=True)
|
||||
thread.start()
|
||||
|
Loading…
Reference in New Issue
Block a user