Spaces:
Build error
Build error
nick-leland
commited on
Commit
·
063f4f5
1
Parent(s):
3d2a9f3
Continued to work on app
Browse files- .gitmodules +3 -0
- DistortionML +1 -0
- app.py +10 -2
.gitmodules
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
[submodule "DistortionML"]
|
2 |
+
path = DistortionML
|
3 |
+
url = https://github.com/nick-leland/DistortionML.git
|
DistortionML
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit 9a627303001c79ff7012bac536115e5e24150a39
|
app.py
CHANGED
@@ -1,9 +1,17 @@
|
|
|
|
1 |
import gradio as gr
|
|
|
2 |
|
3 |
def greet(name):
|
4 |
return "Hello " + name + "!!"
|
5 |
-
gr.Slider(label="Test Slider", show_label=True)
|
6 |
|
7 |
-
demo = gr.Interface(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
demo.launch()
|
9 |
|
|
|
1 |
+
import numpy as np
|
2 |
import gradio as gr
|
3 |
+
from DistortionML.effect import distort_generation
|
4 |
|
5 |
def greet(name):
|
6 |
return "Hello " + name + "!!"
|
|
|
7 |
|
8 |
+
demo = gr.Interface(
|
9 |
+
fn=greet,
|
10 |
+
inputs=["text", "slider"],
|
11 |
+
outputs="text"
|
12 |
+
)
|
13 |
+
|
14 |
+
# Currently working through https://www.gradio.app/main/guies/the-interface-class
|
15 |
+
|
16 |
demo.launch()
|
17 |
|