Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -14,7 +14,20 @@ def sepia(input_img):
|
|
| 14 |
sepia_img /= sepia_img.max()
|
| 15 |
return sepia_img
|
| 16 |
|
| 17 |
-
demo = gr.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
|
| 19 |
if __name__ == "__main__":
|
| 20 |
demo.launch()
|
|
|
|
| 14 |
sepia_img /= sepia_img.max()
|
| 15 |
return sepia_img
|
| 16 |
|
| 17 |
+
demo = gr.TabbedInterface([sepia_filter, generated_output], ["RGB Sepia Filter", "Handwritten to Text"])
|
| 18 |
+
|
| 19 |
+
sepia_filter = gr.Interface(sepia, gr.Image(), "image")
|
| 20 |
+
|
| 21 |
+
with gr.Blocks() as generated_output:
|
| 22 |
+
gr.Markdown(
|
| 23 |
+
"""
|
| 24 |
+
# Hello World!
|
| 25 |
+
Start typing below to see the output.
|
| 26 |
+
""")
|
| 27 |
+
inp = gr.Textbox(placeholder="What is your name?")
|
| 28 |
+
out = gr.Textbox()
|
| 29 |
+
inp.change(welcome, inp, out)
|
| 30 |
+
|
| 31 |
|
| 32 |
if __name__ == "__main__":
|
| 33 |
demo.launch()
|