mirror of
https://github.com/gradio-app/gradio.git
synced 2025-02-05 11:10:03 +08:00
refactored routes
This commit is contained in:
parent
8ccd82187c
commit
c1dc85df17
@ -1,8 +1,8 @@
|
||||
import pkg_resources
|
||||
|
||||
from gradio.app import get_state, set_state
|
||||
from gradio.routes import get_state, set_state
|
||||
from gradio.flagging import *
|
||||
from gradio.interface import * # This makes it possible to import `Interface` as `gradio.Interface`.
|
||||
from gradio.interface import *
|
||||
from gradio.mix import *
|
||||
|
||||
current_pkg_version = pkg_resources.require("gradio")[0].version
|
||||
|
@ -19,7 +19,7 @@ import requests
|
||||
import uvicorn
|
||||
|
||||
from gradio import queueing
|
||||
from gradio.app import app
|
||||
from gradio.routes import app
|
||||
from gradio.tunneling import create_tunnel
|
||||
|
||||
if TYPE_CHECKING: # Only import for type checking (to avoid circular imports).
|
||||
|
Loading…
Reference in New Issue
Block a user