Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -278,5 +278,17 @@ with gr.Blocks() as app:
|
|
278 |
def greet(name):
|
279 |
return "Hello " + name + "!!"
|
280 |
|
281 |
-
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
|
282 |
-
demo.launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
278 |
def greet(name):
|
279 |
return "Hello " + name + "!!"
|
280 |
|
281 |
+
#demo = gr.Interface(fn=greet, inputs="text", outputs="text")
|
282 |
+
#demo.launch()
|
283 |
+
|
284 |
+
|
285 |
+
with gr.Blocks(css=css) as app_with_history:
|
286 |
+
with gr.Tab("Demo"):
|
287 |
+
app.render()
|
288 |
+
with gr.Tab("Past generations"):
|
289 |
+
user_history.render()
|
290 |
+
|
291 |
+
app_with_history.queue(max_size=20,api_open=False )
|
292 |
+
|
293 |
+
if __name__ == "__main__":
|
294 |
+
app_with_history.launch(max_threads=400)
|