Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -116,7 +116,16 @@ input_theme = gr.Dropdown(["Love and Loss", "Identity and Self-Discovery", "Powe
|
|
116 |
input_genre = gr.Dropdown(["Fantasy", "Science Fiction", "Poetry", "Mystery/Thriller", "Romance", "Historical Fiction", "Horror", "Adventure", "Drama", "Comedy"], label="Input Genre")
|
117 |
output_caption = gr.Textbox(label="Image Caption", lines=2)
|
118 |
output_text = gr.Textbox(label="Generated Story",lines=10)
|
119 |
-
examples = [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
120 |
word_count_slider = gr.Slider(minimum=50, maximum=200, value=80, step=5, label="Word Count")
|
121 |
|
122 |
|
|
|
116 |
input_genre = gr.Dropdown(["Fantasy", "Science Fiction", "Poetry", "Mystery/Thriller", "Romance", "Historical Fiction", "Horror", "Adventure", "Drama", "Comedy"], label="Input Genre")
|
117 |
output_caption = gr.Textbox(label="Image Caption", lines=2)
|
118 |
output_text = gr.Textbox(label="Generated Story",lines=10)
|
119 |
+
examples = [
|
120 |
+
["example1.jpg", "Love and Loss", "Fantasy", 80],
|
121 |
+
["example2.jpg", "Identity and Self-Discovery", "Science Fiction", 100],
|
122 |
+
["example3.jpg", "Power and Corruption", "Mystery/Thriller", 120],
|
123 |
+
["example4.jpg", "Redemption and Forgiveness", "Romance", 80],
|
124 |
+
["example5.jpg", "Survival and Resilience", "Poetry", 150],
|
125 |
+
["example6.jpg", "Nature and the Environment", "Horror", 120],
|
126 |
+
["example7.jpg", "Justice and Injustice", "Adventure", 80],
|
127 |
+
["example8.jpg", "Friendship and Loyalty", "Drama", 100],
|
128 |
+
]
|
129 |
word_count_slider = gr.Slider(minimum=50, maximum=200, value=80, step=5, label="Word Count")
|
130 |
|
131 |
|