fmussari commited on
Commit
caeb5ee
1 Parent(s): 1fabc95
Files changed (1) hide show
  1. app.py +3 -9
app.py CHANGED
@@ -1,7 +1,7 @@
1
  # AUTOGENERATED! DO NOT EDIT! File to edit: telecom_object_detection.ipynb.
2
 
3
  # %% auto 0
4
- __all__ = ['title', 'css', 'urls', 'flip_text', 'flip_image']
5
 
6
  # %% telecom_object_detection.ipynb 2
7
  import gradio as gr
@@ -22,12 +22,6 @@ import gradio as gr
22
 
23
  urls = ["https://c8.alamy.com/comp/J2AB4K/the-new-york-stock-exchange-on-the-wall-street-in-new-york-J2AB4K.jpg"]
24
 
25
- def flip_text(x):
26
- return x[::-1]
27
-
28
- def flip_image(x):
29
- return np.fliplr(x)
30
-
31
  with gr.Blocks(css=css) as demo:
32
 
33
  gr.Markdown(title)
@@ -59,7 +53,7 @@ with gr.Blocks(css=css) as demo:
59
  text_button = gr.Button("Detect")
60
 
61
 
62
- text_button.click(flip_text, inputs=text_input, outputs=text_output)
63
- image_button.click(flip_image, inputs=image_input, outputs=image_output)
64
 
65
  demo.launch()
 
1
  # AUTOGENERATED! DO NOT EDIT! File to edit: telecom_object_detection.ipynb.
2
 
3
  # %% auto 0
4
+ __all__ = ['title', 'css', 'urls']
5
 
6
  # %% telecom_object_detection.ipynb 2
7
  import gradio as gr
 
22
 
23
  urls = ["https://c8.alamy.com/comp/J2AB4K/the-new-york-stock-exchange-on-the-wall-street-in-new-york-J2AB4K.jpg"]
24
 
 
 
 
 
 
 
25
  with gr.Blocks(css=css) as demo:
26
 
27
  gr.Markdown(title)
 
53
  text_button = gr.Button("Detect")
54
 
55
 
56
+ #text_button.click(flip_text, inputs=text_input, outputs=text_output)
57
+ #image_button.click(flip_image, inputs=image_input, outputs=image_output)
58
 
59
  demo.launch()