chris-rannou HF staff commited on
Commit
051bdea
·
1 Parent(s): 0fc104d

test new queue

Browse files
Files changed (3) hide show
  1. app.py +10 -5
  2. packages.txt +0 -1
  3. requirements.txt +0 -4
app.py CHANGED
@@ -1,6 +1,11 @@
1
- import sys
 
2
 
3
- if __name__ == "__main__":
4
- print("Hello, World!")
5
-   1/0
6
- print(sys.exit())
 
 
 
 
 
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