Spaces:
Sleeping
Sleeping
Commit
·
2e77929
1
Parent(s):
6f3fb27
Update app.py
Browse files
app.py
CHANGED
|
@@ -20,11 +20,8 @@ def tensor_to_image(tensor):
|
|
| 20 |
content_image_input = gr.Image(label="Content Image")
|
| 21 |
style_image_input = gr.Image(label="Style Image")
|
| 22 |
|
| 23 |
-
text = "#Developer: Aditya Jadhav #College: Government Polytechnic Nagpur #Branch: AIML (Artificial Intelligence and Machine Learning), 3rd year #Date: 17th November 2023 #LinkedIn: Aditya Jadhav's LinkedIn #GitHub: Aditya Jadhav's GitHub"
|
| 24 |
-
my_list = text.split("\n")
|
| 25 |
-
my_string = "\n".join(my_list)
|
| 26 |
|
| 27 |
-
text2 = "The application focuses on neural style transfer, where the style from a style image is applied to a content image."
|
| 28 |
|
| 29 |
def perform_neural_transfer(content_image_input, style_image_input):
|
| 30 |
if content_image_input is None:
|
|
@@ -53,8 +50,7 @@ app_interface = gr.Interface(
|
|
| 53 |
inputs=[content_image_input, style_image_input],
|
| 54 |
outputs="image",
|
| 55 |
title="Art Generation with Neural Style Transfer",
|
| 56 |
-
|
| 57 |
-
description=text2,
|
| 58 |
concurrency_limit =2,
|
| 59 |
examples=[
|
| 60 |
['content1.jpg','image1.jpg'],
|
|
|
|
| 20 |
content_image_input = gr.Image(label="Content Image")
|
| 21 |
style_image_input = gr.Image(label="Style Image")
|
| 22 |
|
| 23 |
+
text = "#Developer: Aditya Jadhav #College: Government Polytechnic Nagpur #Branch: AIML (Artificial Intelligence and Machine Learning), 3rd year #Date: 17th November 2023 #LinkedIn: Aditya Jadhav's LinkedIn #GitHub: Aditya Jadhav's GitHub #Introduction: The application focuses on neural style transfer, where the style from a style image is applied to a content image."
|
|
|
|
|
|
|
| 24 |
|
|
|
|
| 25 |
|
| 26 |
def perform_neural_transfer(content_image_input, style_image_input):
|
| 27 |
if content_image_input is None:
|
|
|
|
| 50 |
inputs=[content_image_input, style_image_input],
|
| 51 |
outputs="image",
|
| 52 |
title="Art Generation with Neural Style Transfer",
|
| 53 |
+
description=text,
|
|
|
|
| 54 |
concurrency_limit =2,
|
| 55 |
examples=[
|
| 56 |
['content1.jpg','image1.jpg'],
|