soranz84 commited on
Commit
181f454
·
verified ·
1 Parent(s): d22e92a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -10,6 +10,7 @@ import math
10
  import os
11
  import tensorflow as tf
12
  from PIL import Image as PILImage
 
13
  from huggingface_hub import hf_hub_download
14
  import io
15
  import base64
@@ -299,7 +300,7 @@ HTML_CONTENT = """
299
  <!DOCTYPE html>
300
  <html>
301
  <head>
302
- <title>GRAI2 Soil Analysis API</title>
303
  <style>
304
  body {
305
  font-family: Arial, sans-serif;
@@ -345,7 +346,7 @@ HTML_CONTENT = """
345
  </head>
346
  <body>
347
  <div class="container">
348
- <h1>🌱 GRAI2 Soil Analysis API</h1>
349
  <p>API for soil particle size distribution analysis from images</p>
350
  <p>Developed by <a href="mailto:enrico.soranzo@boku.ac.at">Enrico Soranzo</a></p>
351
 
@@ -370,7 +371,7 @@ HTML_CONTENT = """
370
 
371
  <h2>Quick Start</h2>
372
  <p>Upload an image using cURL:</p>
373
- <code>curl -X POST -F "file=@soil_image.jpg" https://soranz84-grai2api.hf.space/analyze</code>
374
 
375
  <h2>Recommended Devices</h2>
376
  <ul>
 
10
  import os
11
  import tensorflow as tf
12
  from PIL import Image as PILImage
13
+ from PIL import ExifTags
14
  from huggingface_hub import hf_hub_download
15
  import io
16
  import base64
 
300
  <!DOCTYPE html>
301
  <html>
302
  <head>
303
+ <title>grai3 Soil Analysis API</title>
304
  <style>
305
  body {
306
  font-family: Arial, sans-serif;
 
346
  </head>
347
  <body>
348
  <div class="container">
349
+ <h1>🔵🔵🔵 grai3 Soil Analysis API</h1>
350
  <p>API for soil particle size distribution analysis from images</p>
351
  <p>Developed by <a href="mailto:enrico.soranzo@boku.ac.at">Enrico Soranzo</a></p>
352
 
 
371
 
372
  <h2>Quick Start</h2>
373
  <p>Upload an image using cURL:</p>
374
+ <code>curl -X POST -F "file=@soil_image.jpg" https://soranz84-grai3api.hf.space/analyze</code>
375
 
376
  <h2>Recommended Devices</h2>
377
  <ul>