OpenAI Codex commited on
Commit ·
840b51e
0
Parent(s):
Initial Redac app
Browse files- README.md +16 -0
- app.py +18 -0
- requirements.txt +1 -0
README.md
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: Redac
|
| 3 |
+
emoji: 🖍️
|
| 4 |
+
colorFrom: gray
|
| 5 |
+
colorTo: red
|
| 6 |
+
sdk: gradio
|
| 7 |
+
sdk_version: 6.17.3
|
| 8 |
+
app_file: app.py
|
| 9 |
+
pinned: false
|
| 10 |
+
license: other
|
| 11 |
+
short_description: Redac
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
# Redac
|
| 15 |
+
|
| 16 |
+
Minimal Gradio starter. Edit `app.py` to build out the app.
|
app.py
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
|
| 3 |
+
|
| 4 |
+
def greet(name):
|
| 5 |
+
return f"Hello, {name or 'world'}! Redac is running."
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
with gr.Blocks(title="Redac") as demo:
|
| 9 |
+
gr.Markdown("# 🖍️ Redac")
|
| 10 |
+
with gr.Row():
|
| 11 |
+
inp = gr.Textbox(label="Input", placeholder="Type something...")
|
| 12 |
+
out = gr.Textbox(label="Output")
|
| 13 |
+
btn = gr.Button("Run", variant="primary")
|
| 14 |
+
btn.click(greet, inputs=inp, outputs=out)
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
if __name__ == "__main__":
|
| 18 |
+
demo.launch()
|
requirements.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
gradio==6.17.3
|