Spaces:
Running
Running
Commit
·
051bdea
1
Parent(s):
0fc104d
test new queue
Browse files- app.py +10 -5
- packages.txt +0 -1
- requirements.txt +0 -4
app.py
CHANGED
@@ -1,6 +1,11 @@
|
|
1 |
-
import
|
|
|
2 |
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
import time
|
3 |
|
4 |
+
print(gr.__version__)
|
5 |
+
|
6 |
+
def waiter(*args):
|
7 |
+
time.sleep(10)
|
8 |
+
return "Hello after 10 sec"
|
9 |
+
|
10 |
+
|
11 |
+
gr.Interface(waiter, "text", "text").launch(enable_queue=True)
|
packages.txt
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
libgl1
|
|
|
|
requirements.txt
DELETED
@@ -1,4 +0,0 @@
|
|
1 |
-
streamlit
|
2 |
-
streamlit-image-comparison==0.0.1
|
3 |
-
torch
|
4 |
-
transformers
|
|
|
|
|
|
|
|
|
|