OppaAI commited on
Commit
ef0cc41
·
verified ·
1 Parent(s): 73ea45e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -1,7 +1,6 @@
1
  import os
2
  import base64
3
  import time
4
- from PIL import Image
5
  import io
6
  import gradio as gr
7
  from gradio_client import Client
@@ -21,7 +20,7 @@ def process_webcam_stream(image):
21
  if image is None:
22
  return "", "", "", ""
23
 
24
- # Convert PIL Image to base64
25
  buffered = io.BytesIO()
26
  image.save(buffered, format="JPEG")
27
  b64_img = base64.b64encode(buffered.getvalue()).decode("utf-8")
 
1
  import os
2
  import base64
3
  import time
 
4
  import io
5
  import gradio as gr
6
  from gradio_client import Client
 
20
  if image is None:
21
  return "", "", "", ""
22
 
23
+ # Convert Image to base64
24
  buffered = io.BytesIO()
25
  image.save(buffered, format="JPEG")
26
  b64_img = base64.b64encode(buffered.getvalue()).decode("utf-8")