Spaces:
Sleeping
Sleeping
Sagiv Philipp
commited on
Commit
·
0512fa5
1
Parent(s):
d2d9e7c
Add application file
Browse files- app.py +8 -0
- requirements.txt +10 -0
app.py
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
|
| 3 |
+
def greet(name):
|
| 4 |
+
return "Hello " + name + "!!"
|
| 5 |
+
|
| 6 |
+
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
|
| 7 |
+
demo.launch()
|
| 8 |
+
|
requirements.txt
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
transformers
|
| 2 |
+
torch
|
| 3 |
+
requests
|
| 4 |
+
Pillow
|
| 5 |
+
open_clip_torch
|
| 6 |
+
ftfy
|
| 7 |
+
|
| 8 |
+
# This is only needed for local deployment
|
| 9 |
+
gradio
|
| 10 |
+
|