Spaces:
Runtime error
Runtime error
hamdanhh07 commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,7 +9,12 @@ def query(filename):
|
|
| 9 |
data = f.read()
|
| 10 |
response = requests.post(API_URL, headers=headers, data=data)
|
| 11 |
return response.json()
|
| 12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
app = gr.Blocks()
|
| 14 |
with app:
|
| 15 |
|
|
@@ -34,12 +39,7 @@ with app:
|
|
| 34 |
gr.title = "COVID-19 Detection in Ultrasound Imagery Using Artificial intelligent Methods"
|
| 35 |
gr.description = "[Trained on 500 data using Hugging Face dataset."
|
| 36 |
|
| 37 |
-
|
| 38 |
-
['examples/cov2.jpg'],
|
| 39 |
-
['examples/nor1.jpg'],
|
| 40 |
-
['examples/nor2.jpg'],
|
| 41 |
-
['examples/penu1.jpg'],
|
| 42 |
-
['examples/penu2.jpg']]
|
| 43 |
|
| 44 |
|
| 45 |
|
|
|
|
| 9 |
data = f.read()
|
| 10 |
response = requests.post(API_URL, headers=headers, data=data)
|
| 11 |
return response.json()
|
| 12 |
+
example_list = [['examples/cov1.png'],
|
| 13 |
+
['examples/cov2.jpg'],
|
| 14 |
+
['examples/nor1.jpg'],
|
| 15 |
+
['examples/nor2.jpg'],
|
| 16 |
+
['examples/penu1.jpg'],
|
| 17 |
+
['examples/penu2.jpg']]
|
| 18 |
app = gr.Blocks()
|
| 19 |
with app:
|
| 20 |
|
|
|
|
| 39 |
gr.title = "COVID-19 Detection in Ultrasound Imagery Using Artificial intelligent Methods"
|
| 40 |
gr.description = "[Trained on 500 data using Hugging Face dataset."
|
| 41 |
|
| 42 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
|
| 44 |
|
| 45 |
|