Luca Vivona commited on
Commit
f0c8838
β€’
1 Parent(s): 8a8c958

more updates πŸ§‘β€πŸš€πŸš€

Browse files
Files changed (1) hide show
  1. README.md +2 -11
README.md CHANGED
@@ -177,16 +177,12 @@ from resources import register, tabularGradio
177
  def Hello_World(name):
178
  return f"πŸ‘‹ Hello {name}, and welcome to Gradio Flow πŸ€—"
179
 
180
- @register(inputs=["number", "number"], outputs=["number"], examples=[[1,1]])
181
- def add(x, y):
182
- return x + y
183
-
184
  if __name__ == "__main__":
185
  # run single gradio
186
- tabularGradio([Hello_World, add]) # tabularGradio([Hello_World, add], ["Hello World", "Add"])
187
 
188
  # run it within Gradio-Flow
189
- # tabularGradio([Hello_World, add], ["Hello World", "Add"], listen=2000) # tabularGradio([Hello_World, add], ["Hello World", "Add"], listen=2000)
190
 
191
  ```
192
 
@@ -202,11 +198,6 @@ class Greeting:
202
  def Hello_World(self, name):
203
  return f"πŸ‘‹ Hello {name}, and welcome to Gradio Flow πŸ€—"
204
 
205
- @register(inputs=["number", "number"], outputs=["number"], examples=[[1,1]])
206
- def add(self, x, y):
207
- return x + y
208
-
209
-
210
  if __name__ == "__main__":
211
  # run just gradio
212
  Greeting().launch()
 
177
  def Hello_World(name):
178
  return f"πŸ‘‹ Hello {name}, and welcome to Gradio Flow πŸ€—"
179
 
 
 
 
 
180
  if __name__ == "__main__":
181
  # run single gradio
182
+ tabularGradio([Hello_World]) # tabularGradio([Hello_World], ["Greeting"])
183
 
184
  # run it within Gradio-Flow
185
+ # tabularGradio([Hello_World], listen=2000) # tabularGradio([Hello_World], ["Greeting"], listen=2000)
186
 
187
  ```
188
 
 
198
  def Hello_World(self, name):
199
  return f"πŸ‘‹ Hello {name}, and welcome to Gradio Flow πŸ€—"
200
 
 
 
 
 
 
201
  if __name__ == "__main__":
202
  # run just gradio
203
  Greeting().launch()