Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,11 +8,11 @@ import gradio as gr
|
|
| 8 |
#pip install https://gradio-builds.s3.amazonaws.com/75c684efb87624bee2fb63b08122564e6538509e/gradio-6.17.3-py3-none-any.whl
|
| 9 |
|
| 10 |
|
| 11 |
-
def image_classifier(inp):
|
| 12 |
-
|
| 13 |
|
| 14 |
-
demo = gr.Interface(fn=image_classifier, inputs="image", outputs="label")
|
| 15 |
-
demo.launch()
|
| 16 |
|
| 17 |
|
| 18 |
with open("knowledge.txt", "r", encoding="utf-8") as file:
|
|
|
|
| 8 |
#pip install https://gradio-builds.s3.amazonaws.com/75c684efb87624bee2fb63b08122564e6538509e/gradio-6.17.3-py3-none-any.whl
|
| 9 |
|
| 10 |
|
| 11 |
+
#def image_classifier(inp):
|
| 12 |
+
# return {'cat': 0.3, 'dog': 0.7}
|
| 13 |
|
| 14 |
+
#demo = gr.Interface(fn=image_classifier, inputs="image", outputs="label")
|
| 15 |
+
#demo.launch()
|
| 16 |
|
| 17 |
|
| 18 |
with open("knowledge.txt", "r", encoding="utf-8") as file:
|