abidlabs HF Staff commited on
Commit
9ef0e1c
·
verified ·
1 Parent(s): 7ab0c25

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -7
app.py CHANGED
@@ -2,10 +2,8 @@
2
  import os
3
  import gradio as gr
4
 
5
- gr.load_openapi(
6
- openapi_spec="https://petstore3.swagger.io/api/v3/openapi.json",
7
- base_url="https://petstore3.swagger.io/api/v3/",
8
- paths=None,
9
- methods=['GET', 'POST', 'PUT', 'DELETE'],
10
- auth_token=os.getenv("OPENAPI_AUTH_TOKEN")
11
- ).launch(mcp_server=True)
 
2
  import os
3
  import gradio as gr
4
 
5
+ with gr.Blocks() as demo:
6
+ gr.Textbox(os.getenv("OPENAPI_AUTH_TOKEN"))
7
+
8
+
9
+ demo.launch()