Léo Andéol
commited on
Commit
·
5794246
1
Parent(s):
f723091
First Test
Browse files- Makefile +8 -0
- app.py +9 -0
- requirements.txt +6 -0
Makefile
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.PHONY: main
|
| 2 |
+
|
| 3 |
+
all: main
|
| 4 |
+
|
| 5 |
+
main:
|
| 6 |
+
@echo "Building main"
|
| 7 |
+
python -m pip install -r requirements.txt
|
| 8 |
+
git clone https://github.com/leoandeol/cods.git && cd cods && pip install -e .
|
app.py
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
|
| 3 |
+
|
| 4 |
+
def greet(name):
|
| 5 |
+
return "Hello " + name + "!!"
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
| 9 |
+
iface.launch()
|
requirements.txt
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
numpy
|
| 2 |
+
scipy
|
| 3 |
+
gradio
|
| 4 |
+
opencv-python
|
| 5 |
+
Pillow
|
| 6 |
+
matplotlib
|