mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-27 02:30:17 +08:00
fixed slash issue
This commit is contained in:
parent
00f3877537
commit
4e78d6ead0
@ -114,13 +114,7 @@ def static_resource(path: str):
|
||||
raise HTTPException(status_code=404, detail="Static file not found")
|
||||
|
||||
|
||||
def get_config():
|
||||
# if app.interface.auth is None or current_user.is_authenticated:
|
||||
return app.interface.config
|
||||
# else:
|
||||
# return {"auth_required": True, "auth_message": app.interface.auth_message}
|
||||
|
||||
|
||||
@app.get("/api", response_class=HTMLResponse) # Needed for Spaces
|
||||
@app.get("/api/", response_class=HTMLResponse)
|
||||
def api_docs(request: Request):
|
||||
inputs = [type(inp) for inp in app.interface.input_components]
|
||||
|
@ -35,9 +35,6 @@ LOCALHOST_NAME = os.getenv('GRADIO_SERVER_NAME', "127.0.0.1")
|
||||
GRADIO_API_SERVER = "https://api.gradio.app/v1/tunnel-request"
|
||||
|
||||
|
||||
# app.url_map.strict_slashes = False # TODO: go back to discussion with Charles
|
||||
|
||||
|
||||
def get_first_available_port(
|
||||
initial: int,
|
||||
final: int) -> int:
|
||||
|
Loading…
Reference in New Issue
Block a user