Spaces:
Sleeping
Sleeping
update
Browse files- README.md +2 -2
- app.py +18 -1
- requirements.txt +2 -0
README.md
CHANGED
|
@@ -3,8 +3,8 @@ title: ASAP Exporter
|
|
| 3 |
emoji: 🦀
|
| 4 |
colorFrom: blue
|
| 5 |
colorTo: pink
|
| 6 |
-
sdk:
|
| 7 |
-
sdk_version:
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
---
|
|
|
|
| 3 |
emoji: 🦀
|
| 4 |
colorFrom: blue
|
| 5 |
colorTo: pink
|
| 6 |
+
sdk: gradio
|
| 7 |
+
sdk_version: 4.11.0
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
---
|
app.py
CHANGED
|
@@ -1 +1,18 @@
|
|
| 1 |
-
import gradio as gr
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
import openslide
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
def process(text):
|
| 6 |
+
return text[::-1]
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
demo = gr.Interface(
|
| 10 |
+
fn=process,
|
| 11 |
+
inputs="text",
|
| 12 |
+
outputs="text",
|
| 13 |
+
title="Reverse Text",
|
| 14 |
+
description="Reverses the text entered by the user",
|
| 15 |
+
|
| 16 |
+
)
|
| 17 |
+
|
| 18 |
+
demo.launch()
|
requirements.txt
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
gradio==4.11.0
|
| 2 |
+
openslide-python
|