Spaces:
Running
Running
Deniel Dimitrov
commited on
Commit
·
f68f3d9
1
Parent(s):
4d8f7d0
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,3 @@
|
|
1 |
-
import tkinter as tk
|
2 |
-
from tkinter import filedialog
|
3 |
from PIL import Image, ImageTk
|
4 |
import gradio as gr
|
5 |
|
@@ -34,11 +32,8 @@ def image_to_ascii(file, text_size):
|
|
34 |
|
35 |
iface = gr.Interface(
|
36 |
fn=image_to_ascii,
|
37 |
-
inputs=[
|
38 |
-
|
39 |
-
gr.inputs.Number(label="Text Size", default=100)
|
40 |
-
],
|
41 |
-
outputs=gr.outputs.Textbox(label="ASCII Art"),
|
42 |
title="Image to ASCII Art",
|
43 |
description="Convert an image to ASCII art."
|
44 |
)
|
|
|
|
|
|
|
1 |
from PIL import Image, ImageTk
|
2 |
import gradio as gr
|
3 |
|
|
|
32 |
|
33 |
iface = gr.Interface(
|
34 |
fn=image_to_ascii,
|
35 |
+
inputs=["image", "number"],
|
36 |
+
outputs="text",
|
|
|
|
|
|
|
37 |
title="Image to ASCII Art",
|
38 |
description="Convert an image to ASCII art."
|
39 |
)
|