tracinginsights commited on
Commit
29cfc60
·
1 Parent(s): d26740e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -21,11 +21,7 @@ import gradio as gr
21
 
22
 
23
 
24
- def image_classifier(inp):
25
- return {'cat': 0.3, 'dog': 0.7}
26
 
27
- demo = gr.Interface(fn=image_classifier, inputs="image", outputs="text", analytics_enabled=True)
28
- demo.launch(max_threads=1, show_api=False)
29
 
30
  URL = "https://www.formula1.com/content/fom-website/en/latest/all.xml"
31
 
@@ -264,5 +260,10 @@ def check_updates(every=300):
264
  else:
265
  print('No New article is found')
266
 
267
- check_updates(300)
 
 
 
 
 
268
 
 
21
 
22
 
23
 
 
 
24
 
 
 
25
 
26
  URL = "https://www.formula1.com/content/fom-website/en/latest/all.xml"
27
 
 
260
  else:
261
  print('No New article is found')
262
 
263
+
264
+
265
+
266
+ demo = gr.Interface(fn=check_updates, inputs="number", outputs="text", analytics_enabled=True)
267
+ demo.launch(max_threads=1, show_api=False)
268
+
269