pngwn HF Staff commited on
Commit
3412fa3
·
verified ·
1 Parent(s): a9e618c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -11,7 +11,7 @@ class Data:
11
  return self.data
12
 
13
  app = FastAPI()
14
- data_for_app = new Data("initial data")
15
 
16
 
17
  # Add CORS middleware
@@ -28,7 +28,7 @@ def greet(name):
28
  return f"Hello, {name}!"
29
 
30
  gr.Blocks() as blocks:
31
- gr.Dataframe(value=get_data, label="My Data")
32
 
33
  # Mount Gradio app to root
34
  app = gr.mount_gradio_app(app, interface, path="/")
 
11
  return self.data
12
 
13
  app = FastAPI()
14
+ data_for_app = Data("initial data")
15
 
16
 
17
  # Add CORS middleware
 
28
  return f"Hello, {name}!"
29
 
30
  gr.Blocks() as blocks:
31
+ gr.Dataframe(value=data_for_appget_data, label="My Data")
32
 
33
  # Mount Gradio app to root
34
  app = gr.mount_gradio_app(app, interface, path="/")