Spaces:
Runtime error
Runtime error
Commit
·
eb9ad04
1
Parent(s):
4f10150
Create app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import face_recognition
|
| 2 |
+
import sklearn
|
| 3 |
+
from sklearn import svm
|
| 4 |
+
import os
|
| 5 |
+
from sklearn.model_selection import train_test_split
|
| 6 |
+
from sklearn.metrics import accuracy_score
|
| 7 |
+
import pickle
|
| 8 |
+
import numpy as np
|
| 9 |
+
|
| 10 |
+
import gradio as gr
|
| 11 |
+
|
| 12 |
+
def greet(name):
|
| 13 |
+
return "Hello " + name + "!!"
|
| 14 |
+
|
| 15 |
+
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
| 16 |
+
iface.launch()
|