Spaces:
Sleeping
Sleeping
amirhosseinkarami
commited on
Commit
•
82de0e5
1
Parent(s):
ad7eafd
app.py added
Browse files- app.py +10 -0
- requirements.txt +0 -0
app.py
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio
|
2 |
+
from App.tfidfrecommender import TfidfRecommender
|
3 |
+
|
4 |
+
import gradio as gr
|
5 |
+
|
6 |
+
def image_classifier(inp):
|
7 |
+
return {'cat': 0.3, 'dog': 0.7}
|
8 |
+
|
9 |
+
demo = gr.Interface(fn=image_classifier, inputs="image", outputs="label")
|
10 |
+
demo.launch()
|
requirements.txt
CHANGED
Binary files a/requirements.txt and b/requirements.txt differ
|
|