Spaces:
Sleeping
Sleeping
Commit
Β·
0876449
1
Parent(s):
bf15470
111
Browse files
app.py
CHANGED
@@ -1,19 +1,17 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
def
|
4 |
-
|
5 |
-
|
|
|
6 |
|
7 |
-
|
8 |
-
|
9 |
-
|
|
|
|
|
|
|
|
|
10 |
|
11 |
-
|
12 |
-
|
13 |
-
text_input = gr.Textbox(lines=2, placeholder='ε¨θΏιθΎε
₯ζζ¬')
|
14 |
-
text_submit_button = gr.Button("ζδΊ€ζζ¬ζ
ζεζ")
|
15 |
-
text_output = gr.Textbox(label="ζζ¬ζ
ζεζη»ζ")
|
16 |
-
|
17 |
-
text_submit_button.click(text_emo_analysize, inputs=text_input, outputs=text_output)
|
18 |
-
|
19 |
-
demo.launch()
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
+
def process_image(image):
|
4 |
+
# Placeholder function to process the image
|
5 |
+
# For now, it just returns the image as is
|
6 |
+
return image
|
7 |
|
8 |
+
# Create a Gradio interface
|
9 |
+
iface = gr.Interface(
|
10 |
+
fn=process_image, # Function to process the image
|
11 |
+
inputs=gr.Image(source="webcam", tool="editor"), # Capture image from webcam
|
12 |
+
outputs="image", # Output type is an image
|
13 |
+
live=True # Enable live webcam feed
|
14 |
+
)
|
15 |
|
16 |
+
# Launch the interface
|
17 |
+
iface.launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|