Spaces:
Running
Running
mehranandi
commited on
Update index.html
Browse files- index.html +6 -23
index.html
CHANGED
@@ -22,36 +22,19 @@
|
|
22 |
<gradio-file name="app.py" entrypoint>
|
23 |
import gradio as gr
|
24 |
|
25 |
-
|
26 |
-
|
27 |
-
def process(input_image):
|
28 |
-
output_image = as_gray(input_image)
|
29 |
return output_image
|
30 |
|
31 |
demo = gr.Interface(
|
32 |
process,
|
33 |
-
"
|
34 |
-
"
|
35 |
-
examples=["
|
36 |
)
|
37 |
|
38 |
demo.launch()
|
39 |
-
|
40 |
-
|
41 |
-
<gradio-file name="filters.py">
|
42 |
-
from skimage.color import rgb2gray
|
43 |
-
|
44 |
-
def as_gray(image):
|
45 |
-
return rgb2gray(image)
|
46 |
-
</gradio-file>
|
47 |
-
|
48 |
-
<gradio-file name="lion.jpg" url="https://raw.githubusercontent.com/gradio-app/gradio/main/gradio/test_data/lion.jpg" />
|
49 |
-
<gradio-file name="logo.png" url="https://raw.githubusercontent.com/gradio-app/gradio/main/guides/assets/logo.png" />
|
50 |
-
|
51 |
-
<gradio-requirements>
|
52 |
-
# Same syntax as requirements.txt
|
53 |
-
scikit-image
|
54 |
-
</gradio-requirements>
|
55 |
</gradio-lite>
|
56 |
</body>
|
57 |
</html>
|
|
|
22 |
<gradio-file name="app.py" entrypoint>
|
23 |
import gradio as gr
|
24 |
|
25 |
+
def process(input_text):
|
26 |
+
output_text == (input_text)
|
|
|
|
|
27 |
return output_image
|
28 |
|
29 |
demo = gr.Interface(
|
30 |
process,
|
31 |
+
"text",
|
32 |
+
"text",
|
33 |
+
examples=["hi,how are you", "write code of python by flask for a bot of teleg4"],
|
34 |
)
|
35 |
|
36 |
demo.launch()
|
37 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
</gradio-lite>
|
39 |
</body>
|
40 |
</html>
|