Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -131,19 +131,6 @@ with gr.Blocks() as demo:
|
|
131 |
with gr.TabbedInterface([launch_interface, saved_interface], ["New Launch", "Saved Launch"]):
|
132 |
gr.Markdown("Choose your launch adventure!")
|
133 |
|
134 |
-
# 23. 📚 Series - Like a good book series, but with more data processing
|
135 |
-
def step1(x):
|
136 |
-
return x + 1
|
137 |
-
|
138 |
-
def step2(x):
|
139 |
-
return x * 2
|
140 |
-
|
141 |
-
# 24. 🏎️ Parallel - Multitasking: the art of messing up several things simultaneously
|
142 |
-
gr.Parallel(
|
143 |
-
gr.Interface(fn=lambda x: f"Path A: {x.upper()}", inputs="text", outputs="text"),
|
144 |
-
gr.Interface(fn=lambda x: f"Path B: {x.lower()}", inputs="text", outputs="text")
|
145 |
-
)
|
146 |
-
|
147 |
# 25. 🎟️ Queueing - Like waiting in line for a rollercoaster, but for data!
|
148 |
def long_process(x):
|
149 |
time.sleep(5) # Simulate a long process
|
|
|
131 |
with gr.TabbedInterface([launch_interface, saved_interface], ["New Launch", "Saved Launch"]):
|
132 |
gr.Markdown("Choose your launch adventure!")
|
133 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
134 |
# 25. 🎟️ Queueing - Like waiting in line for a rollercoaster, but for data!
|
135 |
def long_process(x):
|
136 |
time.sleep(5) # Simulate a long process
|