Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -30,13 +30,17 @@ class SimpleModern(Default):
|
|
30 |
)
|
31 |
|
32 |
|
|
|
|
|
|
|
|
|
33 |
|
34 |
|
35 |
# Assuming SimpleModern is your custom theme class
|
36 |
demo = gr.Interface(
|
37 |
fn=your_function,
|
38 |
-
inputs=gr.
|
39 |
-
outputs=gr.
|
40 |
theme=SimpleModern(),
|
41 |
title="Test App",
|
42 |
)
|
|
|
30 |
)
|
31 |
|
32 |
|
33 |
+
def your_function(text):
|
34 |
+
print(text)
|
35 |
+
range = text
|
36 |
+
return range
|
37 |
|
38 |
|
39 |
# Assuming SimpleModern is your custom theme class
|
40 |
demo = gr.Interface(
|
41 |
fn=your_function,
|
42 |
+
inputs=gr.Textbox(),
|
43 |
+
outputs=gr.Textbox(),
|
44 |
theme=SimpleModern(),
|
45 |
title="Test App",
|
46 |
)
|