Update app.py
Browse files
app.py
CHANGED
@@ -10,5 +10,12 @@ def image_classifier(image):
|
|
10 |
results[result['label']] = result['score']
|
11 |
return results
|
12 |
|
13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
demo.launch(show_api=False)
|
|
|
10 |
results[result['label']] = result['score']
|
11 |
return results
|
12 |
|
13 |
+
title = "Maybe's AI Art Detector"
|
14 |
+
description = """
|
15 |
+
This app is a proof-of-concept demonstration of using a machine learning model to predict whether an image is AI art.
|
16 |
+
For more information please see the blog post describing it at:
|
17 |
+
https://medium.com/@matthewmaybe/can-an-ai-learn-to-identify-ai-art-545d9d6af226
|
18 |
+
"""
|
19 |
+
|
20 |
+
demo = gr.Interface(fn=image_classifier, inputs=gr.Image(type="pil"), outputs="label", title=title, description=description)
|
21 |
demo.launch(show_api=False)
|