'1'
Browse files- README.md +0 -12
- app.py +11 -3
- gitpull.cmd +3 -4
README.md
DELETED
@@ -1,12 +0,0 @@
|
|
1 |
-
---
|
2 |
-
title: QiLinWu
|
3 |
-
emoji: 📚
|
4 |
-
colorFrom: indigo
|
5 |
-
colorTo: red
|
6 |
-
sdk: gradio
|
7 |
-
sdk_version: 5.5.0
|
8 |
-
app_file: app.py
|
9 |
-
pinned: false
|
10 |
-
---
|
11 |
-
|
12 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app.py
CHANGED
@@ -1,7 +1,15 @@
|
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
def
|
4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
|
6 |
-
demo = gr.Interface(
|
7 |
demo.launch()
|
|
|
1 |
+
import numpy as np
|
2 |
import gradio as gr
|
3 |
|
4 |
+
def sepia(input_img):
|
5 |
+
sepia_filter = np.array([
|
6 |
+
[0.393, 0.769, 0.189],
|
7 |
+
[0.349, 0.686, 0.168],
|
8 |
+
[0.272, 0.534, 0.131]
|
9 |
+
])
|
10 |
+
sepia_img = input_img.dot(sepia_filter.T)
|
11 |
+
sepia_img /= sepia_img.max()
|
12 |
+
return sepia_img
|
13 |
|
14 |
+
demo = gr.Interface(sepia, gr.Image(), "image")
|
15 |
demo.launch()
|
gitpull.cmd
CHANGED
@@ -1,6 +1,5 @@
|
|
1 |
@echo off
|
2 |
-
git add
|
3 |
-
git commit -m
|
4 |
-
git
|
5 |
-
git push
|
6 |
pause 0
|
|
|
1 |
@echo off
|
2 |
+
git add *
|
3 |
+
git commit -m '1'
|
4 |
+
git push
|
|
|
5 |
pause 0
|