Spaces:
Runtime error
Runtime error
Bipin Krishnan
commited on
Commit
·
9d5d484
1
Parent(s):
5efeff2
added title and examples
Browse files
app.py
CHANGED
|
@@ -68,8 +68,20 @@ if __name__=="__main__":
|
|
| 68 |
nst = gr.Interface.load("spaces/luca-martial/neural-style-transfer")
|
| 69 |
detectron = gr.Interface.load("spaces/akhaliq/Detectron2")
|
| 70 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 71 |
gr.Interface(
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 68 |
nst = gr.Interface.load("spaces/luca-martial/neural-style-transfer")
|
| 69 |
detectron = gr.Interface.load("spaces/akhaliq/Detectron2")
|
| 70 |
|
| 71 |
+
title = "Multipurpose AI"
|
| 72 |
+
description = "With this demo you can do the following tasks using a single text box- image style transfer, story generation and object detection"
|
| 73 |
+
article = "[Bigscience T0pp](https://huggingface.co/bigscience/T0pp) | [story generator](https://huggingface.co/pranavpsv/genre-story-generator-v2) | [style transfer](https://huggingface.co/spaces/luca-martial/neural-style-transfer) | [object detection](https://huggingface.co/spaces/akhaliq/Detectron2)"
|
| 74 |
+
examples = [["Find an image of taj mahal and transfer the style of starry night to it"],
|
| 75 |
+
["Find an image of a football match and detect the objects in that image"],
|
| 76 |
+
["Give me a story about a hard working farmer"]]
|
| 77 |
+
|
| 78 |
gr.Interface(
|
| 79 |
+
main,
|
| 80 |
+
title=title,
|
| 81 |
+
description=description,
|
| 82 |
+
article=article,
|
| 83 |
+
inputs=gr.inputs.Textbox(lines=5, label="Input"),
|
| 84 |
+
outputs=[gr.outputs.Textbox(label="Output"), gr.outputs.Image(label="Ouptut"),],
|
| 85 |
+
examples=examples,
|
| 86 |
+
enable_queue=True,
|
| 87 |
+
).launch(debug=True)
|