Spaces:
Runtime error
Runtime error
Update demo.py
Browse files
demo.py
CHANGED
@@ -1,12 +1,3 @@
|
|
1 |
-
# -*- coding: utf-8 -*-
|
2 |
-
"""Demo.ipynb
|
3 |
-
|
4 |
-
Automatically generated by Colaboratory.
|
5 |
-
|
6 |
-
Original file is located at
|
7 |
-
https://colab.research.google.com/drive/1Icb8zeoaudyTDOKM1QySNay1cXzltRAp
|
8 |
-
"""
|
9 |
-
|
10 |
!pip install -q -U gradio peft
|
11 |
|
12 |
import gradio as gr
|
@@ -130,7 +121,7 @@ def process_image(image , mode = 'numeric' ):
|
|
130 |
|
131 |
return output
|
132 |
|
133 |
-
|
134 |
|
135 |
def image_classifier(image , mode):
|
136 |
return process_image(image , mode)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
!pip install -q -U gradio peft
|
2 |
|
3 |
import gradio as gr
|
|
|
121 |
|
122 |
return output
|
123 |
|
124 |
+
|
125 |
|
126 |
def image_classifier(image , mode):
|
127 |
return process_image(image , mode)
|